From 8a539eaab40dc7a8047dbf97c081467029e6c518 Mon Sep 17 00:00:00 2001 From: "Jiang, Yunhong" Date: Fri, 23 Mar 2012 13:47:38 +0800 Subject: 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 --- target-i386/hax-interface.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'target-i386/hax-interface.h') 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 { -- cgit v1.1