]>
Commit | Line | Data |
---|---|---|
98c8573e PB |
1 | /* |
2 | * QEMU KVM stub | |
3 | * | |
4 | * Copyright Red Hat, Inc. 2010 | |
5 | * | |
6 | * Author: Paolo Bonzini <pbonzini@redhat.com> | |
7 | * | |
8 | * This work is licensed under the terms of the GNU GPL, version 2 or later. | |
9 | * See the COPYING file in the top-level directory. | |
10 | * | |
11 | */ | |
12 | ||
13 | #include "qemu-common.h" | |
98c8573e | 14 | #include "hw/hw.h" |
a2cb15b0 | 15 | #include "hw/pci/msi.h" |
2b41f10e | 16 | #include "cpu.h" |
022c62cb | 17 | #include "exec/gdbstub.h" |
9c17d615 | 18 | #include "sysemu/kvm.h" |
98c8573e | 19 | |
92b4e489 | 20 | KVMState *kvm_state; |
bbf3b804 | 21 | bool kvm_kernel_irqchip; |
7ae26bd4 | 22 | bool kvm_async_interrupts_allowed; |
cc7e0ddf | 23 | bool kvm_irqfds_allowed; |
614e41bc | 24 | bool kvm_msi_via_irqfd_allowed; |
f3e1bed8 | 25 | bool kvm_gsi_routing_allowed; |
92b4e489 | 26 | |
504134d2 | 27 | int kvm_init_vcpu(CPUState *cpu) |
98c8573e PB |
28 | { |
29 | return -ENOSYS; | |
30 | } | |
31 | ||
cad1e282 | 32 | int kvm_init(void) |
98c8573e PB |
33 | { |
34 | return -ENOSYS; | |
35 | } | |
36 | ||
37 | void kvm_flush_coalesced_mmio_buffer(void) | |
38 | { | |
39 | } | |
40 | ||
9349b4f9 | 41 | void kvm_cpu_synchronize_state(CPUArchState *env) |
98c8573e PB |
42 | { |
43 | } | |
44 | ||
9349b4f9 | 45 | void kvm_cpu_synchronize_post_reset(CPUArchState *env) |
98c8573e PB |
46 | { |
47 | } | |
48 | ||
9349b4f9 | 49 | void kvm_cpu_synchronize_post_init(CPUArchState *env) |
98c8573e PB |
50 | { |
51 | } | |
52 | ||
9349b4f9 | 53 | int kvm_cpu_exec(CPUArchState *env) |
98c8573e PB |
54 | { |
55 | abort (); | |
56 | } | |
57 | ||
58 | int kvm_has_sync_mmu(void) | |
59 | { | |
60 | return 0; | |
61 | } | |
62 | ||
d2f2b8a7 SH |
63 | int kvm_has_many_ioeventfds(void) |
64 | { | |
65 | return 0; | |
66 | } | |
67 | ||
8a7c7393 JK |
68 | int kvm_has_pit_state2(void) |
69 | { | |
70 | return 0; | |
71 | } | |
72 | ||
98c8573e PB |
73 | void kvm_setup_guest_memory(void *start, size_t size) |
74 | { | |
75 | } | |
76 | ||
9349b4f9 | 77 | int kvm_update_guest_debug(CPUArchState *env, unsigned long reinject_trap) |
98c8573e | 78 | { |
4bef75b5 | 79 | return -ENOSYS; |
98c8573e PB |
80 | } |
81 | ||
9349b4f9 | 82 | int kvm_insert_breakpoint(CPUArchState *current_env, target_ulong addr, |
98c8573e PB |
83 | target_ulong len, int type) |
84 | { | |
85 | return -EINVAL; | |
86 | } | |
87 | ||
9349b4f9 | 88 | int kvm_remove_breakpoint(CPUArchState *current_env, target_ulong addr, |
98c8573e PB |
89 | target_ulong len, int type) |
90 | { | |
91 | return -EINVAL; | |
92 | } | |
93 | ||
9349b4f9 | 94 | void kvm_remove_all_breakpoints(CPUArchState *current_env) |
98c8573e PB |
95 | { |
96 | } | |
97 | ||
98 | #ifndef _WIN32 | |
9349b4f9 | 99 | int kvm_set_signal_mask(CPUArchState *env, const sigset_t *sigset) |
98c8573e PB |
100 | { |
101 | abort(); | |
102 | } | |
103 | #endif | |
104 | ||
105 | int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) | |
106 | { | |
107 | return -ENOSYS; | |
108 | } | |
1fd74012 | 109 | |
4b8f1c88 | 110 | int kvm_set_ioeventfd_mmio(int fd, uint32_t adr, uint32_t val, bool assign, uint32_t len) |
1fd74012 CM |
111 | { |
112 | return -ENOSYS; | |
113 | } | |
c0532a76 | 114 | |
9349b4f9 | 115 | int kvm_on_sigbus_vcpu(CPUArchState *env, int code, void *addr) |
a1b87fe0 JK |
116 | { |
117 | return 1; | |
118 | } | |
119 | ||
c0532a76 MT |
120 | int kvm_on_sigbus(int code, void *addr) |
121 | { | |
122 | return 1; | |
123 | } | |
92b4e489 JK |
124 | |
125 | int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg) | |
126 | { | |
127 | return -ENOSYS; | |
128 | } | |
1e2aa8be JK |
129 | |
130 | void kvm_irqchip_release_virq(KVMState *s, int virq) | |
131 | { | |
132 | } | |
39853bbc | 133 | |
078bbb50 MT |
134 | int kvm_irqchip_update_msi_route(KVMState *s, int virq, MSIMessage msg) |
135 | { | |
136 | return -ENOSYS; | |
137 | } | |
138 | ||
b131c74a | 139 | int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) |
39853bbc JK |
140 | { |
141 | return -ENOSYS; | |
142 | } | |
143 | ||
b131c74a | 144 | int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) |
15b2bd18 PB |
145 | { |
146 | return -ENOSYS; | |
147 | } |