aboutsummaryrefslogtreecommitdiffstats
path: root/target-i386
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/kvm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index c4fd484..4b135b1 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -16,6 +16,8 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
+#undef __user
+#define __xuser /* nothing */
#include <linux/kvm.h>
#include "qemu-common.h"
@@ -117,6 +119,10 @@ uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, int reg)
#endif
+#ifndef KVM_MP_STATE_RUNNABLE
+#define KVM_MP_STATE_RUNNABLE 0
+#endif
+
int kvm_arch_init_vcpu(CPUState *env)
{
struct {