]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
KVM: VMX: always_inline VMREADs
authorAvi Kivity <avi@redhat.com>
Sun, 15 May 2011 14:13:13 +0000 (10:13 -0400)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:01 +0000 (11:45 +0300)
vmcs_readl() and friends are really short, but gcc thinks they are long because of
the out-of-line exception handlers.  Mark them always_inline to clear the
misunderstanding.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c

index 7d22d6c6734d5505f3c89a3ebfb5c7122f0d79ee..3365e5dd336033d8bdb7c24577c71158b16548cd 100644 (file)
@@ -587,7 +587,7 @@ static inline void ept_sync_individual_addr(u64 eptp, gpa_t gpa)
        }
 }
 
-static unsigned long vmcs_readl(unsigned long field)
+static __always_inline unsigned long vmcs_readl(unsigned long field)
 {
        unsigned long value;
 
@@ -596,17 +596,17 @@ static unsigned long vmcs_readl(unsigned long field)
        return value;
 }
 
-static u16 vmcs_read16(unsigned long field)
+static __always_inline u16 vmcs_read16(unsigned long field)
 {
        return vmcs_readl(field);
 }
 
-static u32 vmcs_read32(unsigned long field)
+static __always_inline u32 vmcs_read32(unsigned long field)
 {
        return vmcs_readl(field);
 }
 
-static u64 vmcs_read64(unsigned long field)
+static __always_inline u64 vmcs_read64(unsigned long field)
 {
 #ifdef CONFIG_X86_64
        return vmcs_readl(field);