~ubuntu-branches/ubuntu/trusty/qemu/trusty

« back to all changes in this revision

Viewing changes to .pc/arm64/0010-target-arm-Provide-cpu-host-when-running-KVM.patch/target-arm/kvm_arm.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-02-04 12:13:08 UTC
  • mfrom: (10.1.45 sid)
  • Revision ID: package-import@ubuntu.com-20140204121308-1xq92lrfs75agw2g
Tags: 1.7.0+dfsg-3ubuntu1~ppa1
* Merge 1.7.0+dfsg-3 from debian.  Remaining changes:
  - debian/patches/ubuntu:
    * expose-vmx_qemu64cpu.patch
    * linaro (omap3) and arm64 patches
    * ubuntu/target-ppc-add-stubs-for-kvm-breakpoints: fix FTBFS
      on ppc
    * ubuntu/CVE-2013-4377.patch: fix denial of service via virtio
  - debian/qemu-system-x86.modprobe: set kvm_intel nested=1 options
  - debian/control:
    * add arm64 to Architectures
    * add qemu-common and qemu-system-aarch64 packages
  - debian/qemu-system-common.install: add debian/tmp/usr/lib
  - debian/qemu-system-common.preinst: add kvm group
  - debian/qemu-system-common.postinst: remove acl placed by udev,
    and add udevadm trigger.
  - qemu-system-x86.links: add eepro100.rom, remove pxe-virtio,
    pxe-e1000 and pxe-rtl8139.
  - add qemu-system-x86.qemu-kvm.upstart and .default
  - qemu-user-static.postinst-in: remove arm64 binfmt
  - debian/rules:
    * allow parallel build
    * add aarch64 to system_targets and sys_systems
    * add qemu-kvm-spice links
    * install qemu-system-x86.modprobe
  - add debian/qemu-system-common.links for OVMF.fd link
* Remove kvm-img, kvm-nbd, kvm-ifup and kvm-ifdown symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * QEMU KVM support -- ARM specific functions.
3
 
 *
4
 
 * Copyright (c) 2012 Linaro Limited
5
 
 *
6
 
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7
 
 * See the COPYING file in the top-level directory.
8
 
 *
9
 
 */
10
 
 
11
 
#ifndef QEMU_KVM_ARM_H
12
 
#define QEMU_KVM_ARM_H
13
 
 
14
 
#include "sysemu/kvm.h"
15
 
#include "exec/memory.h"
16
 
 
17
 
/**
18
 
 * kvm_arm_register_device:
19
 
 * @mr: memory region for this device
20
 
 * @devid: the KVM device ID
21
 
 *
22
 
 * Remember the memory region @mr, and when it is mapped by the
23
 
 * machine model, tell the kernel that base address using the
24
 
 * KVM_SET_DEVICE_ADDRESS ioctl. @devid should be the ID of
25
 
 * the device as defined by KVM_SET_DEVICE_ADDRESS.
26
 
 * The machine model may map and unmap the device multiple times;
27
 
 * the kernel will only be told the final address at the point
28
 
 * where machine init is complete.
29
 
 */
30
 
void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid);
31
 
 
32
 
/**
33
 
 * write_list_to_kvmstate:
34
 
 * @cpu: ARMCPU
35
 
 *
36
 
 * For each register listed in the ARMCPU cpreg_indexes list, write
37
 
 * its value from the cpreg_values list into the kernel (via ioctl).
38
 
 * This updates KVM's working data structures from TCG data or
39
 
 * from incoming migration state.
40
 
 *
41
 
 * Returns: true if all register values were updated correctly,
42
 
 * false if some register was unknown to the kernel or could not
43
 
 * be written (eg constant register with the wrong value).
44
 
 * Note that we do not stop early on failure -- we will attempt
45
 
 * writing all registers in the list.
46
 
 */
47
 
bool write_list_to_kvmstate(ARMCPU *cpu);
48
 
 
49
 
/**
50
 
 * write_kvmstate_to_list:
51
 
 * @cpu: ARMCPU
52
 
 *
53
 
 * For each register listed in the ARMCPU cpreg_indexes list, write
54
 
 * its value from the kernel into the cpreg_values list. This is used to
55
 
 * copy info from KVM's working data structures into TCG or
56
 
 * for outbound migration.
57
 
 *
58
 
 * Returns: true if all register values were read correctly,
59
 
 * false if some register was unknown or could not be read.
60
 
 * Note that we do not stop early on failure -- we will attempt
61
 
 * reading all registers in the list.
62
 
 */
63
 
bool write_kvmstate_to_list(ARMCPU *cpu);
64
 
 
65
 
#endif