diff options
author | 2017-04-25 03:31:15 -0700 | |
---|---|---|
committer | 2017-05-22 06:48:08 +0000 | |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/ipxe/src/arch/x86/drivers/xen/hvm.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/ipxe/src/arch/x86/drivers/xen/hvm.h')
-rw-r--r-- | qemu/roms/ipxe/src/arch/x86/drivers/xen/hvm.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/qemu/roms/ipxe/src/arch/x86/drivers/xen/hvm.h b/qemu/roms/ipxe/src/arch/x86/drivers/xen/hvm.h deleted file mode 100644 index 72ed94f6d..000000000 --- a/qemu/roms/ipxe/src/arch/x86/drivers/xen/hvm.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef _HVM_H -#define _HVM_H - -/** @file - * - * Xen HVM driver - * - */ - -FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); - -#include <stdint.h> -#include <ipxe/xen.h> -#include <xen/hvm/hvm_op.h> -#include <xen/hvm/params.h> - -/** Minimum CPUID base */ -#define HVM_CPUID_MIN 0x40000000UL - -/** Maximum CPUID base */ -#define HVM_CPUID_MAX 0x4000ff00UL - -/** Increment between CPUID bases */ -#define HVM_CPUID_STEP 0x00000100UL - -/** Magic signature */ -#define HVM_CPUID_MAGIC "XenVMMXenVMM" - -/** Get Xen version */ -#define HVM_CPUID_VERSION 1 - -/** Get number of hypercall pages */ -#define HVM_CPUID_PAGES 2 - -/** PCI MMIO BAR */ -#define HVM_MMIO_BAR PCI_BASE_ADDRESS_1 - -/** A Xen HVM device */ -struct hvm_device { - /** Xen hypervisor */ - struct xen_hypervisor xen; - /** CPUID base */ - uint32_t cpuid_base; - /** Length of hypercall table */ - size_t hypercall_len; - /** MMIO base address */ - unsigned long mmio; - /** Current offset within MMIO address space */ - size_t mmio_offset; - /** Length of MMIO address space */ - size_t mmio_len; -}; - -/** - * Get HVM parameter value - * - * @v xen Xen hypervisor - * @v index Parameter index - * @v value Value to fill in - * @ret xenrc Xen status code - */ -static inline int xen_hvm_get_param ( struct xen_hypervisor *xen, - unsigned int index, uint64_t *value ) { - struct xen_hvm_param param; - int xenrc; - - param.domid = DOMID_SELF; - param.index = index; - xenrc = xen_hypercall_2 ( xen, __HYPERVISOR_hvm_op, HVMOP_get_param, - virt_to_phys ( ¶m ) ); - *value = param.value; - return xenrc; -} - -#endif /* _HVM_H */ |