Re: [PATCH] KVM: VMX: Explicitly clear RFLAGS.CF and RFLAGS.ZF in VM-Exit RSB path

2020-05-06 Thread Paolo Bonzini
On 06/05/20 05:53, Sean Christopherson wrote: > Clear CF and ZF in the VM-Exit path after doing __FILL_RETURN_BUFFER so > that KVM doesn't interpret clobbered RFLAGS as a VM-Fail. Filling the > RSB has always clobbered RFLAGS, its current incarnation just happens > clear CF and ZF in the

[PATCH] KVM: VMX: Explicitly clear RFLAGS.CF and RFLAGS.ZF in VM-Exit RSB path

2020-05-05 Thread Sean Christopherson
Clear CF and ZF in the VM-Exit path after doing __FILL_RETURN_BUFFER so that KVM doesn't interpret clobbered RFLAGS as a VM-Fail. Filling the RSB has always clobbered RFLAGS, its current incarnation just happens clear CF and ZF in the processs. Relying on the macro to clear CF and ZF is