/usr/include/valgrind/vki/vki-xen-hvm.h is in valgrind 1:3.11.0-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | /*
This file is part of Valgrind, a dynamic binary instrumentation
framework.
Copyright (C) 2012-2015 Citrix
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307, USA.
The GNU General Public License is contained in the file COPYING.
*/
/* Contributed by Andrew Cooper <andrew.cooper3@citrix.com>
and Ian Campbell <ian.campbell@citrix.com> */
#ifndef __VKI_XEN_HVM_H
#define __VKI_XEN_HVM_H
/* Get/set subcommands: extra argument == pointer to xen_hvm_param struct. */
#define VKI_XEN_HVMOP_set_param 0
#define VKI_XEN_HVMOP_get_param 1
struct vki_xen_hvm_param {
vki_xen_domid_t domid; /* IN */
vki_uint32_t index; /* IN */
vki_uint64_t value; /* IN/OUT */
};
#define VKI_XEN_HVMOP_set_pci_intx_level 2
struct vki_xen_hvm_set_pci_intx_level {
vki_xen_domid_t domid;
vki_uint8_t domain, bus, device, intx;
vki_uint8_t level;
};
typedef struct vki_xen_hvm_set_pci_intx_level vki_xen_hvm_set_pci_intx_level_t;
#define VKI_XEN_HVMOP_set_isa_irq_level 3
struct vki_xen_hvm_set_isa_irq_level {
vki_xen_domid_t domid;
vki_uint8_t isa_irq;
vki_uint8_t level;
};
typedef struct vki_xen_hvm_set_isa_irq_level vki_xen_hvm_set_isa_irq_level_t;
#define VKI_XEN_HVMOP_set_pci_link_route 4
struct vki_xen_hvm_set_pci_link_route {
vki_xen_domid_t domid;
vki_uint8_t link;
vki_uint8_t isa_irq;
};
typedef struct vki_xen_hvm_set_pci_link_route vki_xen_hvm_set_pci_link_route_t;
#define VKI_XEN_HVMOP_track_dirty_vram 6
struct vki_xen_hvm_track_dirty_vram {
vki_xen_domid_t domid; /* IN */
vki_xen_uint64_aligned_t first_pfn; /* IN */
vki_xen_uint64_aligned_t nr; /* IN */
VKI_XEN_GUEST_HANDLE_64(vki_uint8) dirty_bitmap; /* OUT */
};
typedef struct vki_xen_hvm_track_dirty_vram vki_xen_hvm_track_dirty_vram_t;
#define VKI_XEN_HVMOP_set_mem_type 8
struct vki_xen_hvm_set_mem_type {
vki_xen_domid_t domid;
vki_uint16_t hvmmem_type;
vki_uint32_t nr;
vki_uint64_t first_pfn;
};
typedef struct vki_xen_hvm_set_mem_type vki_xen_hvm_set_mem_type_t;
#define VKI_XEN_HVMOP_set_mem_access 12
struct vki_xen_hvm_set_mem_access {
vki_xen_domid_t domid;
vki_uint16_t hvmmem_access;
vki_uint32_t nr;
vki_uint64_t first_pfn;
};
typedef struct vki_xen_hvm_set_mem_access vki_xen_hvm_set_mem_access_t;
#define VKI_XEN_HVMOP_get_mem_access 13
struct vki_xen_hvm_get_mem_access {
vki_xen_domid_t domid;
vki_uint16_t hvmmem_access; /* OUT */
vki_uint64_t pfn;
};
typedef struct vki_xen_hvm_get_mem_access vki_xen_hvm_get_mem_access_t;
#define VKI_XEN_HVMOP_inject_trap 14
struct vki_xen_hvm_inject_trap {
vki_xen_domid_t domid;
vki_uint32_t vcpuid;
vki_uint32_t vector;
vki_uint32_t type;
vki_uint32_t error_code;
vki_uint32_t insn_len;
vki_uint64_t cr2;
};
typedef struct vki_xen_hvm_inject_trap vki_xen_hvm_inject_trap_t;
#endif // __VKI_XEN_HVM_H
/*--------------------------------------------------------------------*/
/*--- end ---*/
/*--------------------------------------------------------------------*/
|