~ubuntu-branches/ubuntu/saucy/qemu/saucy-proposed

« back to all changes in this revision

Viewing changes to kvm-stub.c

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2013-05-28 08:18:30 UTC
  • mfrom: (1.8.2) (10.1.37 sid)
  • Revision ID: package-import@ubuntu.com-20130528081830-87xl2z9fq516a814
Tags: 1.5.0+dfsg-2ubuntu1
* Merge 1.5.0+dfs-2 from debian unstable.  Remaining changes:
  - debian/control
    * update maintainer
    * remove libiscsi, usb-redir, vde, vnc-jpeg, and libssh2-1-dev
      from build-deps
    * enable rbd
    * add qemu-system and qemu-common B/R to qemu-keymaps
    * add D:udev, R:qemu, R:qemu-common and B:qemu-common to
      qemu-system-common
    * qemu-system-arm, qemu-system-ppc, qemu-system-sparc:
      - add qemu-kvm to Provides
      - add qemu-common, qemu-kvm, kvm to B/R
      - remove openbios-sparc from qemu-system-sparc D
    * qemu-system-x86:
      - add qemu-common to Breaks/Replaces.
      - add cpu-checker to Recommends.
    * qemu-user: add B/R:qemu-kvm
    * qemu-kvm:
      - add armhf armel powerpc sparc to Architecture
      - C/R/P: qemu-kvm-spice
    * add qemu-common package
    * drop qemu-slof which is not packaged in ubuntu
  - add qemu-system-common.links for tap ifup/down scripts and OVMF link.
  - qemu-system-x86.links:
    * remove pxe rom links which are in kvm-ipxe
    * add symlink for kvm.1 manpage
  - debian/rules
    * add kvm-spice symlink to qemu-kvm
    * call dh_installmodules for qemu-system-x86
    * update dh_installinit to install upstart script
    * run dh_installman (Closes: #709241) (cherrypicked from 1.5.0+dfsg-2)
  - Add qemu-utils.links for kvm-* symlinks.
  - Add qemu-system-x86.qemu-kvm.upstart and .default
  - Add qemu-system-x86.modprobe to set nesting=1
  - Add qemu-system-common.preinst to add kvm group
  - qemu-system-common.postinst: remove bad group acl if there, then have
    udev relabel /dev/kvm.
  - Dropped patches:
    * 0001-fix-wrong-output-with-info-chardev-for-tcp-socket.patch
  - Kept patches:
    * expose_vms_qemu64cpu.patch - updated
    * gridcentric patch - updated
    * linaro arm patches from qemu-linaro rebasing branch

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/pci/msi.h"
16
15
#include "cpu.h"
17
 
#include "exec/gdbstub.h"
18
16
#include "sysemu/kvm.h"
19
17
 
 
18
#ifndef CONFIG_USER_ONLY
 
19
#include "hw/pci/msi.h"
 
20
#endif
 
21
 
20
22
KVMState *kvm_state;
21
23
bool kvm_kernel_irqchip;
22
24
bool kvm_async_interrupts_allowed;
23
25
bool kvm_irqfds_allowed;
24
26
bool kvm_msi_via_irqfd_allowed;
25
27
bool kvm_gsi_routing_allowed;
 
28
bool kvm_allowed;
26
29
 
27
30
int kvm_init_vcpu(CPUState *cpu)
28
31
{
42
45
{
43
46
}
44
47
 
45
 
void kvm_cpu_synchronize_post_reset(CPUArchState *env)
 
48
void kvm_cpu_synchronize_post_reset(CPUState *cpu)
46
49
{
47
50
}
48
51
 
49
 
void kvm_cpu_synchronize_post_init(CPUArchState *env)
 
52
void kvm_cpu_synchronize_post_init(CPUState *cpu)
50
53
{
51
54
}
52
55
 
102
105
}
103
106
#endif
104
107
 
105
 
int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign)
106
 
{
107
 
    return -ENOSYS;
108
 
}
109
 
 
110
 
int kvm_set_ioeventfd_mmio(int fd, uint32_t adr, uint32_t val, bool assign, uint32_t len)
111
 
{
112
 
    return -ENOSYS;
113
 
}
114
 
 
115
108
int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr)
116
109
{
117
110
    return 1;
122
115
    return 1;
123
116
}
124
117
 
 
118
#ifndef CONFIG_USER_ONLY
125
119
int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg)
126
120
{
127
121
    return -ENOSYS;
145
139
{
146
140
    return -ENOSYS;
147
141
}
 
142
#endif