x86/vvmx: make get_shadow_eptp static function
authorWei Liu <wei.liu2@citrix.com>
Fri, 17 Aug 2018 15:12:20 +0000 (16:12 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 21 Aug 2018 13:57:11 +0000 (14:57 +0100)
Its callers live within the same file.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vvmx.h

index 918d47df931c59330907500d2038030b5492367d..b7d9a1a65ad236bb9051f40f6a082ae876ef94d6 100644 (file)
@@ -1107,7 +1107,7 @@ static void load_shadow_guest_state(struct vcpu *v)
     /* TODO: CR3 target control */
 }
 
-uint64_t get_shadow_eptp(struct vcpu *v)
+static uint64_t get_shadow_eptp(struct vcpu *v)
 {
     struct p2m_domain *p2m = p2m_get_nestedp2m(v);
     struct ept_data *ept = &p2m->ept;
index 9ea35eb79585c0bcb8a2a82acc3297b5062eb225..a20bd9e2d15e42b54454a0291ffdec8c609e9752 100644 (file)
@@ -188,8 +188,6 @@ enum vmx_insn_errno set_vvmcs_real_safe(const struct vcpu *, u32 encoding,
    set_vvmcs_real_safe(vcpu, encoding, val) : \
    set_vvmcs_virtual_safe(vcpu_nestedhvm(vcpu).nv_vvmcx, encoding, val))
 
-uint64_t get_shadow_eptp(struct vcpu *v);
-
 void nvmx_destroy_vmcs(struct vcpu *v);
 int nvmx_handle_vmptrld(struct cpu_user_regs *regs);
 int nvmx_handle_vmptrst(struct cpu_user_regs *regs);