On 13/2/26 04:45, Mohamed Mediouni wrote:
Signed-off-by: Mohamed Mediouni <[email protected]>
---
  include/system/whpx-accel-ops.h |  8 +++++---
  target/i386/whpx/whpx-all.c     | 12 ++++++++++--
  2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/include/system/whpx-accel-ops.h b/include/system/whpx-accel-ops.h
index ed9d4c49f4..469a3a4350 100644
--- a/include/system/whpx-accel-ops.h
+++ b/include/system/whpx-accel-ops.h
@@ -22,11 +22,13 @@ void whpx_cpu_synchronize_post_reset(CPUState *cpu);
  void whpx_cpu_synchronize_post_init(CPUState *cpu);
  void whpx_cpu_synchronize_pre_loadvm(CPUState *cpu);
+/* subset of runtime state for faster returns from vmexit */
+#define WHPX_SET_FAST_RUNTIME_STATE   1
  /* state subset only touched by the VCPU itself during runtime */
-#define WHPX_SET_RUNTIME_STATE   1
+#define WHPX_SET_RUNTIME_STATE   2
  /* state subset modified during VCPU reset */
-#define WHPX_SET_RESET_STATE     2
+#define WHPX_SET_RESET_STATE     3
  /* full state set, modified during initialization or on vmload */
-#define WHPX_SET_FULL_STATE      3
+#define WHPX_SET_FULL_STATE      4

Could we make this an enum used by whpx_set_registers() @level argument?

Otherwise,
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to