~fboudra/qemu-linaro/new-upstream-release-1.2.0-2012.09-0ubuntu1

« back to all changes in this revision

Viewing changes to kvm-stub.c

  • Committer: Fathi Boudra
  • Author(s): Fathi Boudra
  • Date: 2012-08-21 06:47:11 UTC
  • mfrom: (0.1.16)
  • Revision ID: fathi.boudra@linaro.org-20120821064711-7yxmubp2v8a44xce
Tags: 1.1.50-2012.08-0ubuntu1
* New upstream release.
  - support emulated systems with more than 2G of memory. (LP: #1030588)
* Drop powerpc-missing-include.patch - merged upstream.
* Update debian/control: 
  - drop perl build dependency.
  - add libfdt-dev build dependency.
* Update debian/qemu-keymaps.install file.
* Update debian/rules:
  - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
  - update conf_audio_drv: default to PulseAudio since PA is the default on
    Ubuntu.
  - enable KVM on ARM architecture.
  - enable flat device tree support (--enable-fdt). (LP: #1030594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
#include "qemu-common.h"
14
14
#include "hw/hw.h"
 
15
#include "hw/msi.h"
15
16
#include "cpu.h"
16
17
#include "gdbstub.h"
17
18
#include "kvm.h"
18
19
 
19
 
int kvm_pit_in_kernel(void)
20
 
{
21
 
    return 0;
22
 
}
23
 
 
24
 
 
25
 
int kvm_init_vcpu(CPUState *env)
 
20
KVMState *kvm_state;
 
21
bool kvm_kernel_irqchip;
 
22
bool kvm_async_interrupts_allowed;
 
23
bool kvm_irqfds_allowed;
 
24
bool kvm_msi_via_irqfd_allowed;
 
25
bool kvm_gsi_routing_allowed;
 
26
 
 
27
int kvm_init_vcpu(CPUArchState *env)
26
28
{
27
29
    return -ENOSYS;
28
30
}
46
48
{
47
49
}
48
50
 
49
 
void kvm_cpu_synchronize_state(CPUState *env)
50
 
{
51
 
}
52
 
 
53
 
void kvm_cpu_synchronize_post_reset(CPUState *env)
54
 
{
55
 
}
56
 
 
57
 
void kvm_cpu_synchronize_post_init(CPUState *env)
58
 
{
59
 
}
60
 
 
61
 
int kvm_cpu_exec(CPUState *env)
 
51
void kvm_cpu_synchronize_state(CPUArchState *env)
 
52
{
 
53
}
 
54
 
 
55
void kvm_cpu_synchronize_post_reset(CPUArchState *env)
 
56
{
 
57
}
 
58
 
 
59
void kvm_cpu_synchronize_post_init(CPUArchState *env)
 
60
{
 
61
}
 
62
 
 
63
int kvm_cpu_exec(CPUArchState *env)
62
64
{
63
65
    abort ();
64
66
}
73
75
    return 0;
74
76
}
75
77
 
76
 
int kvm_allows_irq0_override(void)
 
78
int kvm_has_pit_state2(void)
77
79
{
78
 
    return 1;
 
80
    return 0;
79
81
}
80
82
 
81
83
void kvm_setup_guest_memory(void *start, size_t size)
82
84
{
83
85
}
84
86
 
85
 
int kvm_update_guest_debug(CPUState *env, unsigned long reinject_trap)
 
87
int kvm_update_guest_debug(CPUArchState *env, unsigned long reinject_trap)
86
88
{
87
89
    return -ENOSYS;
88
90
}
89
91
 
90
 
int kvm_insert_breakpoint(CPUState *current_env, target_ulong addr,
91
 
                          target_ulong len, int type)
92
 
{
93
 
    return -EINVAL;
94
 
}
95
 
 
96
 
int kvm_remove_breakpoint(CPUState *current_env, target_ulong addr,
97
 
                          target_ulong len, int type)
98
 
{
99
 
    return -EINVAL;
100
 
}
101
 
 
102
 
void kvm_remove_all_breakpoints(CPUState *current_env)
 
92
int kvm_insert_breakpoint(CPUArchState *current_env, target_ulong addr,
 
93
                          target_ulong len, int type)
 
94
{
 
95
    return -EINVAL;
 
96
}
 
97
 
 
98
int kvm_remove_breakpoint(CPUArchState *current_env, target_ulong addr,
 
99
                          target_ulong len, int type)
 
100
{
 
101
    return -EINVAL;
 
102
}
 
103
 
 
104
void kvm_remove_all_breakpoints(CPUArchState *current_env)
103
105
{
104
106
}
105
107
 
106
108
#ifndef _WIN32
107
 
int kvm_set_signal_mask(CPUState *env, const sigset_t *sigset)
 
109
int kvm_set_signal_mask(CPUArchState *env, const sigset_t *sigset)
108
110
{
109
111
    abort();
110
112
}
115
117
    return -ENOSYS;
116
118
}
117
119
 
118
 
int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val, bool assign)
 
120
int kvm_set_ioeventfd_mmio(int fd, uint32_t adr, uint32_t val, bool assign, uint32_t len)
119
121
{
120
122
    return -ENOSYS;
121
123
}
122
124
 
123
 
int kvm_on_sigbus_vcpu(CPUState *env, int code, void *addr)
 
125
int kvm_on_sigbus_vcpu(CPUArchState *env, int code, void *addr)
124
126
{
125
127
    return 1;
126
128
}
129
131
{
130
132
    return 1;
131
133
}
 
134
 
 
135
int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg)
 
136
{
 
137
    return -ENOSYS;
 
138
}
 
139
 
 
140
void kvm_irqchip_release_virq(KVMState *s, int virq)
 
141
{
 
142
}
 
143
 
 
144
int kvm_irqchip_add_irqfd(KVMState *s, int fd, int virq)
 
145
{
 
146
    return -ENOSYS;
 
147
}
 
148
 
 
149
int kvm_irqchip_add_irq_notifier(KVMState *s, EventNotifier *n, int virq)
 
150
{
 
151
    return -ENOSYS;
 
152
}
 
153
 
 
154
int kvm_irqchip_remove_irqfd(KVMState *s, int fd, int virq)
 
155
{
 
156
    return -ENOSYS;
 
157
}
 
158
 
 
159
int kvm_irqchip_remove_irq_notifier(KVMState *s, EventNotifier *n, int virq)
 
160
{
 
161
    return -ENOSYS;
 
162
}