Re: [PATCH v2 1/1] powerpc/kvm: Save Timebase Offset to fix sched_clock() while running guest code.

2021-02-05 Thread Fabiano Rosas
Leonardo Bras writes: > Before guest entry, TBU40 register is changed to reflect guest timebase. > After exitting guest, the register is reverted to it's original value. > > If one tries to get the timestamp from host between those changes, it > will present an incorrect value. > > An example

Re: [PATCH v2 1/4] KVM: PPC: Allow nested guest creation when L0 hv_guest_state > L1

2020-12-09 Thread Fabiano Rosas
e taught to > understand older layout of hv_guest_state, if we restrict the > new member to be added only at the end. i.e. we can allow > nested guest even when L0 hv_guest_state.version > L1 > hv_guest_state.version. Though, the other way around is not > possible. > > Sig

Re: [PATCH] KVM: PPC: Book3S: Remove redundant initialization of variable ret

2020-09-21 Thread Fabiano Rosas
Jing Xiangfeng writes: > The variable ret is being initialized with '-ENOMEM' that is meaningless. > So remove it. > > Signed-off-by: Jing Xiangfeng Reviewed-by: Fabiano Rosas > --- > arch/powerpc/kvm/book3s_64_vio.c | 2 +- > 1 file changed, 1 insertion(+), 1 delet

[PATCH] scripts/gdb: Fix invocation when CONFIG_COMMON_CLK is not set

2019-05-23 Thread Fabiano Rosas
nts.py", line 2, in LX_CLK_GET_RATE_NOCACHE = gdb.parse_and_eval("CLK_GET_RATE_NOCACHE") gdb.error: No symbol "CLK_GET_RATE_NOCACHE" in current context. Fixes: e7e6f462c1be ("scripts/gdb: print cached rate in lx-clk-summary") Signed-off-by: Fabiano Rosas --- scripts/gd