* [PATCH] KVM: VMX: use EPT_VIOLATION_GVA_TRANSLATED instead of 0x100
@ 2021-04-23 0:22 Isaku Yamahata
2021-04-23 7:04 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Isaku Yamahata @ 2021-04-23 0:22 UTC (permalink / raw)
To: kvm, Paolo Bonzini, Sean Christopherson
Cc: isaku.yamahata, Isaku Yamahata, Yao Yuan
Use symbolic value, EPT_VIOLATION_GVA_TRANSLATED, instead of 0x100
in handle_ept_violation().
Signed-off-by: Yao Yuan <yuan.yao@intel.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
---
arch/x86/kvm/vmx/vmx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 6501d66167b8..2791c2b4c917 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -5398,7 +5398,7 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu)
EPT_VIOLATION_EXECUTABLE))
? PFERR_PRESENT_MASK : 0;
- error_code |= (exit_qualification & 0x100) != 0 ?
+ error_code |= (exit_qualification & EPT_VIOLATION_GVA_TRANSLATED) != 0 ?
PFERR_GUEST_FINAL_MASK : PFERR_GUEST_PAGE_MASK;
vcpu->arch.exit_qualification = exit_qualification;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: VMX: use EPT_VIOLATION_GVA_TRANSLATED instead of 0x100
2021-04-23 0:22 [PATCH] KVM: VMX: use EPT_VIOLATION_GVA_TRANSLATED instead of 0x100 Isaku Yamahata
@ 2021-04-23 7:04 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2021-04-23 7:04 UTC (permalink / raw)
To: Isaku Yamahata, kvm, Sean Christopherson; +Cc: isaku.yamahata, Yao Yuan
On 23/04/21 02:22, Isaku Yamahata wrote:
> Use symbolic value, EPT_VIOLATION_GVA_TRANSLATED, instead of 0x100
> in handle_ept_violation().
>
> Signed-off-by: Yao Yuan <yuan.yao@intel.com>
> Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
> ---
> arch/x86/kvm/vmx/vmx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
> index 6501d66167b8..2791c2b4c917 100644
> --- a/arch/x86/kvm/vmx/vmx.c
> +++ b/arch/x86/kvm/vmx/vmx.c
> @@ -5398,7 +5398,7 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu)
> EPT_VIOLATION_EXECUTABLE))
> ? PFERR_PRESENT_MASK : 0;
>
> - error_code |= (exit_qualification & 0x100) != 0 ?
> + error_code |= (exit_qualification & EPT_VIOLATION_GVA_TRANSLATED) != 0 ?
> PFERR_GUEST_FINAL_MASK : PFERR_GUEST_PAGE_MASK;
>
> vcpu->arch.exit_qualification = exit_qualification;
>
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-23 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 0:22 [PATCH] KVM: VMX: use EPT_VIOLATION_GVA_TRANSLATED instead of 0x100 Isaku Yamahata
2021-04-23 7:04 ` Paolo Bonzini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.