All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix migration of linux guests using kvmclock
@ 2009-10-16 19:27 Glauber Costa
  2009-10-16 19:27 ` [PATCH 1/3] introduce VMSTATE_U64 Glauber Costa
  2009-10-19 19:51 ` [PATCH 0/3] Fix migration of linux guests using kvmclock Marcelo Tosatti
  0 siblings, 2 replies; 8+ messages in thread
From: Glauber Costa @ 2009-10-16 19:27 UTC (permalink / raw)
  To: kvm; +Cc: avi

This series uses the new ioctl I've just posted to the kernel.
It is pretty straightforward usage.

We first have to save and restore kvm msr registers, and later, which
is done in patch 2. It has nothing to do with our ioctls, but is required
for the whole thing to work.

Patch 1 is a dependency, that quintela plans on sending to qemu.git too,
but is provided here for people that might want to test it.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] introduce VMSTATE_U64
@ 2009-10-27 17:49 Andrew Theurer
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew Theurer @ 2009-10-27 17:49 UTC (permalink / raw)
  To: glommer, kvm


> On Tue, Oct 20, 2009 at 08:40:26AM +0900, Avi Kivity wrote:
> > On 10/17/2009 04:27 AM, Glauber Costa wrote:
> >> This is a patch actually written by Juan, which, according to him,
> >> he plans on posting to qemu.git. Problem is that linux defines
> >> u64 in a way that is type-uncompatible with uint64_t.
> >>
> >> I am including it here, because it is a dependency to my patch series
> >> that follows.
> >>
> >>    
> >
> > Why can't we store these values in qemu as uint64_ts?
> Because then we have to redefine the whole structure in qemu.
> 
> the proposal is to simply pick the structures directly from linux. I believe
> it is much easier, and the versioning scheme in vmstate will help us get 
> around any changes they might suffer in the future.

I get build errors with this.  Is there something extra I need to do?  I am currently running a rhel54 2.6.18 kernel.

  CC    qdev-properties.o
savevm.c: In function ‘get_u64’:
savevm.c:856: error: ‘__u64’ undeclared (first use in this function)
savevm.c:856: error: (Each undeclared identifier is reported only once
savevm.c:856: error: for each function it appears in.)
savevm.c:856: error: ‘v’ undeclared (first use in this function)
savevm.c: In function ‘put_u64’:
savevm.c:863: error: ‘__u64’ undeclared (first use in this function)
savevm.c:863: error: ‘v’ undeclared (first use in this function)
make[1]: *** [savevm.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build-all] Error 2


Thanks,

-Andrew






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-10-27 17:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 19:27 [PATCH 0/3] Fix migration of linux guests using kvmclock Glauber Costa
2009-10-16 19:27 ` [PATCH 1/3] introduce VMSTATE_U64 Glauber Costa
2009-10-16 19:27   ` [PATCH 2/3] properly save kvm system time msr registers Glauber Costa
2009-10-16 19:27     ` [PATCH 3/3] get and set clock upon migration Glauber Costa
2009-10-19 23:40   ` [PATCH 1/3] introduce VMSTATE_U64 Avi Kivity
2009-10-20  0:38     ` Glauber Costa
2009-10-19 19:51 ` [PATCH 0/3] Fix migration of linux guests using kvmclock Marcelo Tosatti
  -- strict thread matches above, loose matches on Subject: below --
2009-10-27 17:49 [PATCH 1/3] introduce VMSTATE_U64 Andrew Theurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.