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

Commit a03d7f4b authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Avi Kivity
Browse files

KVM: Put kvm_para.h include outside __KERNEL__



kvm_para.h potentially contains definitions that are to be used by userspace,
so it should not be included inside the __KERNEL__ block. To protect its own
data structures, kvm_para.h already includes its own __KERNEL__ block.

Signed-off-by: default avatarGlauber de Oliveira Costa <gcosta@redhat.com>
Acked-by: default avatarAmit Shah <amit.shah@qumranet.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 6c142801
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,12 +14,12 @@

#define KVM_HC_VAPIC_POLL_IRQ            1

#ifdef __KERNEL__
/*
 * hypercalls use architecture specific
 */
#include <asm/kvm_para.h>

#ifdef __KERNEL__
static inline int kvm_para_has_feature(unsigned int feature)
{
	if (kvm_arch_para_features() & (1UL << feature))