diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2012-03-23 13:47:38 +0800 |
---|---|---|
committer | Jiang, Yunhong <yunhong.jiang@intel.com> | 2012-04-07 22:36:08 +0800 |
commit | 8a539eaab40dc7a8047dbf97c081467029e6c518 (patch) | |
tree | f429032dc6e26dfd4af5ffb27a5ddbb1bffae45f /target-i386/hax-interface.h | |
parent | f597bde4b03c8732013c673ca920599d1ee3160d (diff) | |
download | external_qemu-8a539eaab40dc7a8047dbf97c081467029e6c518.zip external_qemu-8a539eaab40dc7a8047dbf97c081467029e6c518.tar.gz external_qemu-8a539eaab40dc7a8047dbf97c081467029e6c518.tar.bz2 |
Add a HAXM interface for QEMU API version
Add a HAXM interface so that QEMU can communicate its API version to HAXM.
With this, HAXM can keep better backward compatibility, for example, masking
of the new features if qemu does not support new features.
Change-Id: I24c7c8d353653978f507739f6e53a9d389d06e43
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'target-i386/hax-interface.h')
-rw-r--r-- | target-i386/hax-interface.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-i386/hax-interface.h b/target-i386/hax-interface.h index 569eeba..cb6d7c8 100644 --- a/target-i386/hax-interface.h +++ b/target-i386/hax-interface.h @@ -328,6 +328,15 @@ struct hax_module_version uint32_t cur_version; }; +/* This interface is support only after API version 2 */ +struct hax_qemu_version +{ + /* Current API version in QEMU*/ + uint32_t cur_version; + /* The least API version supported by QEMU */ + uint32_t least_version; +}; + /* See comments for HAX_VM_IOCTL_ALLOC_RAM ioctl */ struct hax_alloc_ram_info { |