diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-04-23 09:58:54 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-04-23 09:58:54 -0500 |
commit | 53878a132aaadbedbe8fe0e44afa032a4ed73aea (patch) | |
tree | d487f4157b2d8b394575cd04a22183222ef20bd1 /hw/xen.h | |
parent | 6b03296606c665beb570eaa53a71f7688a43b9e7 (diff) | |
parent | 4c9f8d1b4eb0e1a7e69df6373e9c2d40a929494d (diff) |
Merge remote-tracking branch 'sstabellini/build_fix' into staging
* sstabellini/build_fix:
xen: add a dummy xc_hvm_inject_msi for Xen < 4.2
xen,configure: detect Xen 4.2
Diffstat (limited to 'hw/xen.h')
-rw-r--r-- | hw/xen.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -57,4 +57,14 @@ void xen_register_framebuffer(struct MemoryRegion *mr); # define HVM_MAX_VCPUS 32 #endif +static inline int xen_msi_support(void) +{ +#if defined(CONFIG_XEN_CTRL_INTERFACE_VERSION) \ + && CONFIG_XEN_CTRL_INTERFACE_VERSION >= 420 + return xen_enabled(); +#else + return 0; +#endif +} + #endif /* QEMU_HW_XEN_H */ |