Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96304217 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: VMX: always_inline VMREADs



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: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 5e520e62
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);