X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=kvm-stub.c;h=64e23f6be059c4d2a64bcb0ab4c54043c0257c7b;hb=353801cde4e1e98cc1e2790f92cf934adac9f7dd;hp=e979f76d078226df20c29ec4b16bff29143766c0;hpb=76fe21dedafb0319306bc993f23e7646b139cfe4;p=mirror_qemu.git diff --git a/kvm-stub.c b/kvm-stub.c index e979f76d07..64e23f6be0 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -10,8 +10,8 @@ * */ +#include "qemu/osdep.h" #include "qemu-common.h" -#include "hw/hw.h" #include "cpu.h" #include "sysemu/kvm.h" @@ -22,19 +22,22 @@ KVMState *kvm_state; bool kvm_kernel_irqchip; bool kvm_async_interrupts_allowed; +bool kvm_eventfds_allowed; bool kvm_irqfds_allowed; +bool kvm_resamplefds_allowed; bool kvm_msi_via_irqfd_allowed; bool kvm_gsi_routing_allowed; bool kvm_gsi_direct_mapping; bool kvm_allowed; bool kvm_readonly_mem_allowed; +bool kvm_ioeventfd_any_length_allowed; -int kvm_init_vcpu(CPUState *cpu) +int kvm_destroy_vcpu(CPUState *cpu) { return -ENOSYS; } -int kvm_init(void) +int kvm_init_vcpu(CPUState *cpu) { return -ENOSYS; } @@ -70,11 +73,6 @@ int kvm_has_many_ioeventfds(void) return 0; } -int kvm_has_pit_state2(void) -{ - return 0; -} - void kvm_setup_guest_memory(void *start, size_t size) { } @@ -118,7 +116,7 @@ int kvm_on_sigbus(int code, void *addr) } #ifndef CONFIG_USER_ONLY -int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg) +int kvm_irqchip_add_msi_route(KVMState *s, int vector, PCIDevice *dev) { return -ENOSYS; } @@ -131,19 +129,35 @@ void kvm_irqchip_release_virq(KVMState *s, int virq) { } -int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg) +int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg, + PCIDevice *dev) +{ + return -ENOSYS; +} + +void kvm_irqchip_commit_routes(KVMState *s) +{ +} + +int kvm_irqchip_add_adapter_route(KVMState *s, AdapterInfo *adapter) { return -ENOSYS; } -int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, - EventNotifier *rn, int virq) +int kvm_irqchip_add_irqfd_notifier_gsi(KVMState *s, EventNotifier *n, + EventNotifier *rn, int virq) { return -ENOSYS; } -int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) +int kvm_irqchip_remove_irqfd_notifier_gsi(KVMState *s, EventNotifier *n, + int virq) { return -ENOSYS; } + +bool kvm_has_free_slot(MachineState *ms) +{ + return false; +} #endif