mirror of https://gitee.com/openkylin/qemu.git
Fix -enable-kvm
Make vl.o compiled per target and fix a thinko in hw/acpi.c. It's not trivial to make kvm.h consumable by compiled-once files. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d3f822d241
commit
b33612d035
|
@ -128,7 +128,7 @@ user-obj-y += cutils.o cache-utils.o
|
|||
# libhw
|
||||
|
||||
hw-obj-y =
|
||||
hw-obj-y += vl.o loader.o
|
||||
hw-obj-y += loader.o
|
||||
hw-obj-y += virtio.o virtio-console.o
|
||||
hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
|
||||
hw-obj-y += fw_cfg.o pci.o pci_host.o pcie_host.o
|
||||
|
|
|
@ -161,7 +161,7 @@ endif #CONFIG_BSD_USER
|
|||
# System emulator target
|
||||
ifdef CONFIG_SOFTMMU
|
||||
|
||||
obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o
|
||||
obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o
|
||||
# virtio has to be here due to weird dependency between PCI and virtio-net.
|
||||
# need to fix this properly
|
||||
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
|
||||
|
|
|
@ -529,7 +529,8 @@ i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
|
|||
|
||||
register_ioport_write(ACPI_DBG_IO_ADDR, 4, 4, acpi_dbg_writel, s);
|
||||
|
||||
if (kvm_enabled) {
|
||||
s->kvm_enabled = kvm_enabled;
|
||||
if (s->kvm_enabled) {
|
||||
/* Mark SMM as already inited to prevent SMM from running. KVM does not
|
||||
* support SMM mode. */
|
||||
pci_conf[0x5B] = 0x02;
|
||||
|
|
Loading…
Reference in New Issue