Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441809

[PATCH v2 5/5] vmx: advertise support for ept execute only

From Bandan Das <bsd@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 5/5] vmx: advertise support for ept execute only
Date 2016-07-13 00:30 +0200
Message-ID <rUelI-2F3-29@gated-at.bofh.it> (permalink)
References <rUec2-2Bd-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


MMU now knows about execute only mappings, so
advertise the feature to L1 hypervisors

Signed-off-by: Bandan Das <bsd@redhat.com>
---
 arch/x86/kvm/vmx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index f73b5dc..2c49355f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2717,6 +2717,9 @@ static void nested_vmx_setup_ctls_msrs(struct vcpu_vmx *vmx)
 		vmx->nested.nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT |
 			 VMX_EPTP_WB_BIT | VMX_EPT_2MB_PAGE_BIT |
 			 VMX_EPT_INVEPT_BIT;
+		if (cpu_has_vmx_ept_execute_only())
+			vmx->nested.nested_vmx_ept_caps |=
+				VMX_EPT_EXECUTE_ONLY_BIT;
 		vmx->nested.nested_vmx_ept_caps &= vmx_capability.ept;
 		/*
 		 * For nested guests, we don't do anything specific
-- 
2.5.5

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/5] Add support for EPT execute only for nested hypervisors Bandan Das <bsd@redhat.com> - 2016-07-13 00:20 +0200
  [PATCH v2 2/5] mmu: don't set the present bit unconditionally Bandan Das <bsd@redhat.com> - 2016-07-13 00:30 +0200
    Re: [PATCH v2 2/5] mmu: don't set the present bit unconditionally Paolo Bonzini <pbonzini@redhat.com> - 2016-07-13 10:20 +0200
  [PATCH v2 4/5] mmu: change unconditional setting of the u bit in fault bitmap Bandan Das <bsd@redhat.com> - 2016-07-13 00:30 +0200
    Re: [PATCH v2 4/5] mmu: change unconditional setting of the u bit in  fault bitmap Paolo Bonzini <pbonzini@redhat.com> - 2016-07-13 10:30 +0200
      Re: [PATCH v2 4/5] mmu: change unconditional setting of the u bit in  fault bitmap Paolo Bonzini <pbonzini@redhat.com> - 2016-07-13 11:10 +0200
  [PATCH v2 3/5] mmu: remove is_present_gpte() Bandan Das <bsd@redhat.com> - 2016-07-13 00:30 +0200
  [PATCH v2 5/5] vmx: advertise support for ept execute only Bandan Das <bsd@redhat.com> - 2016-07-13 00:30 +0200
  Re: [PATCH v2 0/5] Add support for EPT execute only for nested  hypervisors Paolo Bonzini <pbonzini@redhat.com> - 2016-07-13 11:30 +0200
    Re: [PATCH v2 0/5] Add support for EPT execute only for nested  hypervisors Fam Zheng <famz@redhat.com> - 2016-07-13 12:00 +0200
      Re: [PATCH v2 0/5] Add support for EPT execute only for nested  hypervisors Paolo Bonzini <pbonzini@redhat.com> - 2016-07-13 12:10 +0200
    Re: [PATCH v2 0/5] Add support for EPT execute only for nested hypervisors Bandan Das <bsd@redhat.com> - 2016-07-13 17:10 +0200
      Re: [PATCH v2 0/5] Add support for EPT execute only for nested  hypervisors Paolo Bonzini <pbonzini@redhat.com> - 2016-07-13 17:30 +0200
        Re: [PATCH v2 0/5] Add support for EPT execute only for nested hypervisors Bandan Das <bsd@redhat.com> - 2016-07-13 17:50 +0200
          Re: [PATCH v2 0/5] Add support for EPT execute only for nested  hypervisors Paolo Bonzini <pbonzini@redhat.com> - 2016-07-14 09:00 +0200
            Re: [PATCH v2 0/5] Add support for EPT execute only for nested hypervisors Bandan Das <bsd@redhat.com> - 2016-07-14 19:40 +0200
              Re: [PATCH v2 0/5] Add support for EPT execute only for nested  hypervisors Paolo Bonzini <pbonzini@redhat.com> - 2016-07-14 20:30 +0200
                Re: [PATCH v2 0/5] Add support for EPT execute only for nested hypervisors Bandan Das <bsd@redhat.com> - 2016-07-14 21:00 +0200

csiph-web