* [uq/master qemu PATCH] fix steal time MSR vmsd callback to proper opaque type
@ 2013-09-03 21:55 Marcelo Tosatti
2013-09-12 16:30 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Marcelo Tosatti @ 2013-09-03 21:55 UTC (permalink / raw)
To: kvm-devel; +Cc: Gleb Natapov, Paolo Bonzini
Convert steal time MSR vmsd callback pointer to proper X86CPU type.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
diff --git a/target-i386/machine.c b/target-i386/machine.c
index dc81cde..e568da2 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -330,9 +330,9 @@ static bool pv_eoi_msr_needed(void *opaque)
static bool steal_time_msr_needed(void *opaque)
{
- CPUX86State *cpu = opaque;
+ X86CPU *cpu = opaque;
- return cpu->steal_time_msr != 0;
+ return cpu->env.steal_time_msr != 0;
}
static const VMStateDescription vmstate_steal_time_msr = {
@@ -341,7 +341,7 @@ static const VMStateDescription vmstate_steal_time_msr = {
.minimum_version_id = 1,
.minimum_version_id_old = 1,
.fields = (VMStateField []) {
- VMSTATE_UINT64(steal_time_msr, CPUX86State),
+ VMSTATE_UINT64(env.steal_time_msr, X86CPU),
VMSTATE_END_OF_LIST()
}
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [uq/master qemu PATCH] fix steal time MSR vmsd callback to proper opaque type
2013-09-03 21:55 [uq/master qemu PATCH] fix steal time MSR vmsd callback to proper opaque type Marcelo Tosatti
@ 2013-09-12 16:30 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2013-09-12 16:30 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: kvm-devel, Gleb Natapov
Il 03/09/2013 23:55, Marcelo Tosatti ha scritto:
>
> Convert steal time MSR vmsd callback pointer to proper X86CPU type.
>
> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
>
> diff --git a/target-i386/machine.c b/target-i386/machine.c
> index dc81cde..e568da2 100644
> --- a/target-i386/machine.c
> +++ b/target-i386/machine.c
> @@ -330,9 +330,9 @@ static bool pv_eoi_msr_needed(void *opaque)
>
> static bool steal_time_msr_needed(void *opaque)
> {
> - CPUX86State *cpu = opaque;
> + X86CPU *cpu = opaque;
>
> - return cpu->steal_time_msr != 0;
> + return cpu->env.steal_time_msr != 0;
> }
>
> static const VMStateDescription vmstate_steal_time_msr = {
> @@ -341,7 +341,7 @@ static const VMStateDescription vmstate_steal_time_msr = {
> .minimum_version_id = 1,
> .minimum_version_id_old = 1,
> .fields = (VMStateField []) {
> - VMSTATE_UINT64(steal_time_msr, CPUX86State),
> + VMSTATE_UINT64(env.steal_time_msr, X86CPU),
> VMSTATE_END_OF_LIST()
> }
> };
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Applied to uq/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-12 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 21:55 [uq/master qemu PATCH] fix steal time MSR vmsd callback to proper opaque type Marcelo Tosatti
2013-09-12 16:30 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox