[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/25] target-i386: add kvm stubs to user-mode emulat
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 07/25] target-i386: add kvm stubs to user-mode emulators |
Date: |
Sat, 9 Mar 2019 08:48:00 +0100 |
The CPUID code will call kvm_arch_get_supported_cpuid() and, even though
it is undef kvm_enabled() so it never runs for user-mode emulators,
sometimes clang will not optimize it out at -O0.
That could be considered a compiler bug, however at -O0 we give it
a pass and just add the stubs.
Reported-by: Kamil Rytarowski <address@hidden>
Tested-by: Kamil Rytarowski <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
target/i386/Makefile.objs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/Makefile.objs b/target/i386/Makefile.objs
index cb9c265..48e0c28 100644
--- a/target/i386/Makefile.objs
+++ b/target/i386/Makefile.objs
@@ -3,10 +3,10 @@ obj-$(CONFIG_TCG) += translate.o
obj-$(CONFIG_TCG) += bpt_helper.o cc_helper.o excp_helper.o fpu_helper.o
obj-$(CONFIG_TCG) += int_helper.o mem_helper.o misc_helper.o mpx_helper.o
obj-$(CONFIG_TCG) += seg_helper.o smm_helper.o svm_helper.o
+obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
ifeq ($(CONFIG_SOFTMMU),y)
obj-y += machine.o arch_memory_mapping.o arch_dump.o monitor.o
obj-$(CONFIG_KVM) += kvm.o
-obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
obj-$(CONFIG_HYPERV) += hyperv.o
obj-$(call lnot,$(CONFIG_HYPERV)) += hyperv-stub.o
ifeq ($(CONFIG_WIN32),y)
--
1.8.3.1
- [Qemu-devel] [PULL 00/25] Misc patches for QEMU 4.0 soft freeze, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 01/25] memory: Do not update coalesced IO range in the case of NOP, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 03/25] hw/i386/pc: run the multiboot loader before the PVH loader, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 02/25] vfio-pci: enable by default, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 04/25] block/iscsi: Restrict Linux-specific code, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 08/25] i386: extended the cpuid_level when Intel PT is enabled, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 07/25] target-i386: add kvm stubs to user-mode emulators,
Paolo Bonzini <=
- [Qemu-devel] [PULL 14/25] build: remove unnecessary assignments from Makefile.target, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 12/25] update copyright notice, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 19/25] scsi-disk: Fix crash if request is invaild or disk is no medium, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 11/25] lsi: check if SIGP bit is already set in Wait reselect, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 20/25] lsi: use ldn_le_p()/stn_le_p(), Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 17/25] oslib-posix: Ignore fcntl("/dev/null", F_SETFL, O_NONBLOCK) failure, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 16/25] accel: Allow to build QEMU without TCG or KVM support, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 24/25] lsi: return dfifo value, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 10/25] lsi: implement basic SBCL functionality, Paolo Bonzini, 2019/03/09
- [Qemu-devel] [PULL 06/25] configure: Enable werror for git worktrees, Paolo Bonzini, 2019/03/09