hyperv: fix build on non-KVM hosts
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
5b4448d27d
commit
61eb1f38c1
@ -201,7 +201,7 @@ obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
|
|||||||
obj-y += memory.o savevm.o
|
obj-y += memory.o savevm.o
|
||||||
LIBS+=-lz
|
LIBS+=-lz
|
||||||
|
|
||||||
obj-i386-y +=hyperv.o
|
obj-i386-$(CONFIG_KVM) += hyperv.o
|
||||||
|
|
||||||
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
|
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
|
||||||
QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
|
QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
|
||||||
|
@ -14,7 +14,9 @@
|
|||||||
#define QEMU_HW_HYPERV_H 1
|
#define QEMU_HW_HYPERV_H 1
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
|
#ifdef CONFIG_KVM
|
||||||
#include <asm/hyperv.h>
|
#include <asm/hyperv.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HYPERV_SPINLOCK_NEVER_RETRY
|
#ifndef HYPERV_SPINLOCK_NEVER_RETRY
|
||||||
#define HYPERV_SPINLOCK_NEVER_RETRY 0xFFFFFFFF
|
#define HYPERV_SPINLOCK_NEVER_RETRY 0xFFFFFFFF
|
||||||
@ -24,7 +26,7 @@
|
|||||||
#define KVM_CPUID_SIGNATURE_NEXT 0x40000100
|
#define KVM_CPUID_SIGNATURE_NEXT 0x40000100
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_KVM)
|
||||||
void hyperv_enable_vapic_recommended(bool val);
|
void hyperv_enable_vapic_recommended(bool val);
|
||||||
void hyperv_enable_relaxed_timing(bool val);
|
void hyperv_enable_relaxed_timing(bool val);
|
||||||
void hyperv_set_spinlock_retries(int val);
|
void hyperv_set_spinlock_retries(int val);
|
||||||
|
Loading…
Reference in New Issue
Block a user