Re: [PATCH] MIPS: KVM: Fix trace event to save PC directly

2015-03-02 Thread Marcelo Tosatti
On Tue, Feb 24, 2015 at 11:46:20AM +, James Hogan wrote: > Currently the guest exit trace event saves the VCPU pointer to the > structure, and the guest PC is retrieved by dereferencing it when the > event is printed rather than directly from the trace record. This isn't > safe as the printing

Re: [PATCH] MIPS: KVM: Fix trace event to save PC directly

2015-02-24 Thread Steven Rostedt
On Tue, 24 Feb 2015 11:46:20 + James Hogan wrote: > Lets save the actual PC in the structure so that the correct value is > accessible later. > > Fixes: 669e846e6c4e ("KVM/MIPS32: MIPS arch specific APIs for KVM") > Signed-off-by: James Hogan > Cc: Paolo Bonzini > Cc: Ralf Baechle > Cc:

[PATCH] MIPS: KVM: Fix trace event to save PC directly

2015-02-24 Thread James Hogan
Currently the guest exit trace event saves the VCPU pointer to the structure, and the guest PC is retrieved by dereferencing it when the event is printed rather than directly from the trace record. This isn't safe as the printing may occur long afterwards, after the PC has changed and potentially a