]> git.proxmox.com Git - mirror_qemu.git/blame - kvm-stub.c
tcg: rework liveness analysis
[mirror_qemu.git] / kvm-stub.c
CommitLineData
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"
92b4e489 15#include "hw/msi.h"
2b41f10e 16#include "cpu.h"
98c8573e
PB
17#include "gdbstub.h"
18#include "kvm.h"
19
92b4e489 20KVMState *kvm_state;
bbf3b804 21bool kvm_kernel_irqchip;
7ae26bd4 22bool kvm_async_interrupts_allowed;
cc7e0ddf 23bool kvm_irqfds_allowed;
614e41bc 24bool kvm_msi_via_irqfd_allowed;
f3e1bed8 25bool kvm_gsi_routing_allowed;
92b4e489 26
9349b4f9 27int kvm_init_vcpu(CPUArchState *env)
98c8573e
PB
28{
29 return -ENOSYS;
30}
31
cad1e282 32int kvm_init(void)
98c8573e
PB
33{
34 return -ENOSYS;
35}
36
37void kvm_flush_coalesced_mmio_buffer(void)
38{
39}
40
9349b4f9 41void kvm_cpu_synchronize_state(CPUArchState *env)
98c8573e
PB
42{
43}
44
9349b4f9 45void kvm_cpu_synchronize_post_reset(CPUArchState *env)
98c8573e
PB
46{
47}
48
9349b4f9 49void kvm_cpu_synchronize_post_init(CPUArchState *env)
98c8573e
PB
50{
51}
52
9349b4f9 53int kvm_cpu_exec(CPUArchState *env)
98c8573e
PB
54{
55 abort ();
56}
57
58int kvm_has_sync_mmu(void)
59{
60 return 0;
61}
62
d2f2b8a7
SH
63int kvm_has_many_ioeventfds(void)
64{
65 return 0;
66}
67
8a7c7393
JK
68int kvm_has_pit_state2(void)
69{
70 return 0;
71}
72
98c8573e
PB
73void kvm_setup_guest_memory(void *start, size_t size)
74{
75}
76
9349b4f9 77int kvm_update_guest_debug(CPUArchState *env, unsigned long reinject_trap)
98c8573e 78{
4bef75b5 79 return -ENOSYS;
98c8573e
PB
80}
81
9349b4f9 82int kvm_insert_breakpoint(CPUArchState *current_env, target_ulong addr,
98c8573e
PB
83 target_ulong len, int type)
84{
85 return -EINVAL;
86}
87
9349b4f9 88int kvm_remove_breakpoint(CPUArchState *current_env, target_ulong addr,
98c8573e
PB
89 target_ulong len, int type)
90{
91 return -EINVAL;
92}
93
9349b4f9 94void kvm_remove_all_breakpoints(CPUArchState *current_env)
98c8573e
PB
95{
96}
97
98#ifndef _WIN32
9349b4f9 99int kvm_set_signal_mask(CPUArchState *env, const sigset_t *sigset)
98c8573e
PB
100{
101 abort();
102}
103#endif
104
105int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign)
106{
107 return -ENOSYS;
108}
1fd74012 109
4b8f1c88 110int 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 115int kvm_on_sigbus_vcpu(CPUArchState *env, int code, void *addr)
a1b87fe0
JK
116{
117 return 1;
118}
119
c0532a76
MT
120int kvm_on_sigbus(int code, void *addr)
121{
122 return 1;
123}
92b4e489
JK
124
125int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg)
126{
127 return -ENOSYS;
128}
1e2aa8be
JK
129
130void kvm_irqchip_release_virq(KVMState *s, int virq)
131{
132}
39853bbc 133
b131c74a 134int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, int virq)
39853bbc
JK
135{
136 return -ENOSYS;
137}
138
b131c74a 139int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq)
15b2bd18
PB
140{
141 return -ENOSYS;
142}