|
|
9ae3a8 |
From 1cec05857c5aaa0eebe75e7c2e6c6116fb9759cd Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Marcelo Tosatti <mtosatti@redhat.com>
|
|
|
9ae3a8 |
Date: Mon, 23 Sep 2013 20:00:13 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 29/29] fix steal time MSR vmsd callback to proper opaque type
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Marcelo Tosatti <mtosatti@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20130923200013.GA20765@amt.cnet>
|
|
|
9ae3a8 |
Patchwork-id: 54498
|
|
|
9ae3a8 |
O-Subject: [RHEL7 qemu-kvm PATCH] fix steal time MSR vmsd callback to proper opaque type
|
|
|
9ae3a8 |
Bugzilla: 903889
|
|
|
9ae3a8 |
RH-Acked-by: Andrew Jones <drjones@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Gleb Natapov <gleb@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
BZ: 903889
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
commit 0e5035776df31380a44a1a851850d110b551ecb6 of uq/master branch of qemu-kvm.git repo
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Convert steal time MSR vmsd callback pointer to proper X86CPU type.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
target-i386/machine.c | 6 +++---
|
|
|
9ae3a8 |
1 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/target-i386/machine.c b/target-i386/machine.c
|
|
|
9ae3a8 |
index 3659db9..ecf1617 100644
|
|
|
9ae3a8 |
--- a/target-i386/machine.c
|
|
|
9ae3a8 |
+++ b/target-i386/machine.c
|
|
|
9ae3a8 |
@@ -294,9 +294,9 @@ static bool pv_eoi_msr_needed(void *opaque)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static bool steal_time_msr_needed(void *opaque)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- CPUX86State *cpu = opaque;
|
|
|
9ae3a8 |
+ X86CPU *cpu = opaque;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- return cpu->steal_time_msr != 0;
|
|
|
9ae3a8 |
+ return cpu->env.steal_time_msr != 0;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static const VMStateDescription vmstate_steal_time_msr = {
|
|
|
9ae3a8 |
@@ -305,7 +305,7 @@ static const VMStateDescription vmstate_steal_time_msr = {
|
|
|
9ae3a8 |
.minimum_version_id = 1,
|
|
|
9ae3a8 |
.minimum_version_id_old = 1,
|
|
|
9ae3a8 |
.fields = (VMStateField []) {
|
|
|
9ae3a8 |
- VMSTATE_UINT64(steal_time_msr, CPUX86State),
|
|
|
9ae3a8 |
+ VMSTATE_UINT64(env.steal_time_msr, X86CPU),
|
|
|
9ae3a8 |
VMSTATE_END_OF_LIST()
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|