X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=kvm-stub.c;h=47f8dca7d51d2cce941c07f4dc0099005f09e51b;hb=11e9235b1a88a98124fe005c93ade019d6a09c0b;hp=47c573d6f388afd5e1b6eab4550bc018228f2062;hpb=e92861ccb166883b0672b1ddfebce4f5de85e23d;p=qemu.git diff --git a/kvm-stub.c b/kvm-stub.c index 47c573d6f..47f8dca7d 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -12,21 +12,19 @@ #include "qemu-common.h" #include "hw/hw.h" +#include "hw/pci/msi.h" #include "cpu.h" -#include "gdbstub.h" -#include "kvm.h" +#include "exec/gdbstub.h" +#include "sysemu/kvm.h" -int kvm_init_vcpu(CPUArchState *env) -{ - return -ENOSYS; -} - -int kvm_coalesce_mmio_region(target_phys_addr_t start, ram_addr_t size) -{ - return -ENOSYS; -} +KVMState *kvm_state; +bool kvm_kernel_irqchip; +bool kvm_async_interrupts_allowed; +bool kvm_irqfds_allowed; +bool kvm_msi_via_irqfd_allowed; +bool kvm_gsi_routing_allowed; -int kvm_uncoalesce_mmio_region(target_phys_addr_t start, ram_addr_t size) +int kvm_init_vcpu(CPUState *cpu) { return -ENOSYS; } @@ -67,11 +65,6 @@ int kvm_has_many_ioeventfds(void) return 0; } -int kvm_allows_irq0_override(void) -{ - return 1; -} - int kvm_has_pit_state2(void) { return 0; @@ -128,3 +121,27 @@ int kvm_on_sigbus(int code, void *addr) { return 1; } + +int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg) +{ + return -ENOSYS; +} + +void kvm_irqchip_release_virq(KVMState *s, int virq) +{ +} + +int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg) +{ + return -ENOSYS; +} + +int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) +{ + return -ENOSYS; +} + +int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) +{ + return -ENOSYS; +}