mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Merge remote-tracking branch 'remotes/sstabellini/xen-2014-10-30' into staging
* remotes/sstabellini/xen-2014-10-30: fix off-by-one error in pci_piix3_xen_ide_unplug xen-hvm.c: Add support for Xen access to vmport Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
ee29498e4f
3 changed files with 120 additions and 7 deletions
|
@ -164,4 +164,19 @@ void destroy_hvm_domain(bool reboot);
|
|||
/* shutdown/destroy current domain because of an error */
|
||||
void xen_shutdown_fatal_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
|
||||
|
||||
#ifdef HVM_PARAM_VMPORT_REGS_PFN
|
||||
static inline int xen_get_vmport_regs_pfn(XenXC xc, domid_t dom,
|
||||
unsigned long *vmport_regs_pfn)
|
||||
{
|
||||
return xc_get_hvm_param(xc, dom, HVM_PARAM_VMPORT_REGS_PFN,
|
||||
vmport_regs_pfn);
|
||||
}
|
||||
#else
|
||||
static inline int xen_get_vmport_regs_pfn(XenXC xc, domid_t dom,
|
||||
unsigned long *vmport_regs_pfn)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* QEMU_HW_XEN_COMMON_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue