X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=kvm-stub.c;h=ef0c7346af7f61571d54aca776151284a95c604f;hb=6b9d62db89a31882d53d8fbfb67d4d82f22877b6;hp=7b2233ae8229b6580166b829277621c40798c0e3;hpb=b142d79328cd0a0556634b0eeb891a15bfd5a00c;p=mirror_qemu.git diff --git a/kvm-stub.c b/kvm-stub.c index 7b2233ae82..ef0c7346af 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,18 +22,23 @@ 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; +bool kvm_msi_use_devid; -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; } @@ -69,16 +74,7 @@ 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) -{ -} - -int kvm_update_guest_debug(CPUArchState *env, unsigned long reinject_trap) +int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap) { return -ENOSYS; } @@ -99,13 +95,6 @@ void kvm_remove_all_breakpoints(CPUState *cpu) { } -#ifndef _WIN32 -int kvm_set_signal_mask(CPUState *cpu, const sigset_t *sigset) -{ - abort(); -} -#endif - int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr) { return 1; @@ -117,7 +106,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; } @@ -130,18 +119,40 @@ 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; } -int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) +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_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; +} + +void kvm_init_cpu_signals(CPUState *cpu) +{ + abort(); +} #endif