Skip to contentSkip to conversation

differences in hvm save/restore in 3.1 vs 3.2

DISCUSSION James Harper 3 participants 6 messages Jul 4, 2008

lore
Share & tools
lore
#0 lore raw

I'm still trying to figure out why save/restore was working with my windows gplpv drivers and suddenly now it's not, and I've just realised that the one thing that has changed is that I've switched back to Xen 3.2 again, and when it was working I was using Xen 3.1.

Are there any fundamental differences between how the HVM save/restore works between 3.1 and 3.2?

It seems I can't use the windows debugger to help me, as after I restore it will no longer reconnect, while it did when I was using Xen 3.1. That may be unrelated to the above problem though... the debugger connects to the serial port of the hvm domain via an 'xm console xxx' command in inetd.conf... and I think that that isn't working properly after the restore.

Thanks

James

#1 lore raw
Quoted 2 lines

It seems I can't use the windows debugger to help me, as after I

restore

Quoted 1 line

it will no longer reconnect, while it did when I was using Xen 3.1.

That

Quoted 1 line

may be unrelated to the above problem though... the debugger connects

to

Quoted 3 lines

the serial port of the hvm domain via an 'xm console xxx' command in inetd.conf... and I think that that isn't working properly after the restore.

Further to this, before the 'save' is issued, 'xm console' behaves how I would expect - nothing gets echo's to the screen and ^] closes the console session. After the 'restore', 'xm console' echo's everything to the screen, and ^] doesn't do anything useful (apart from print ^] on the screen), like the console session hasn't connected to the serial port at all.

Any idea's on that?

Thanks

James

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There's a bug in the serial port emulation in qemu related to saving and restoring. There's a patch floating around somewhere which fixes it, but depending on what source tree you're using you may not have it yet. One of the critical registers isn't saved and also isn't regenerated at restore time, meaning that serial port interrupts stop getting delivered to the guest properly.

Chris

James Harper wrote:

|> It seems I can't use the windows debugger to help me, as after I
| restore
|> it will no longer reconnect, while it did when I was using Xen 3.1.
| That
|> may be unrelated to the above problem though... the debugger connects
| to
|> the serial port of the hvm domain via an 'xm console xxx' command in
|> inetd.conf... and I think that that isn't working properly after the
|> restore.
|
| Further to this, before the 'save' is issued, 'xm console' behaves how I
| would expect - nothing gets echo's to the screen and ^] closes the
| console session. After the 'restore', 'xm console' echo's everything to
| the screen, and ^] doesn't do anything useful (apart from print ^] on
| the screen), like the console session hasn't connected to the serial
| port at all.
|
| Any idea's on that?
|
| Thanks
|
| James
|
| _______________________________________________
| Xen-devel mailing list
| [email protected]
| http://lists.xensource.com/xen-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhtyYsACgkQiD2svb/jCb47kgCfS+6WHr8BKKeREuWY1hYatDDc ooQAmwbuVQ7pGCLCc1KXgoX93ztijzfW
=Pw1D
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 4 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There's a bug in the serial port emulation in qemu related to saving

and

Quoted 1 line

restoring. There's a patch floating around somewhere which fixes it,

but

Quoted 1 line

depending on what source tree you're using you may not have it yet.

One

Quoted 2 lines

of the critical registers isn't saved and also isn't regenerated at restore time, meaning that serial port interrupts stop getting

delivered

Quoted 2 lines

to the guest properly.

That sounds like the sort of problem I'm seeing. It's obviously a regression though as it was working in 3.1.

I'm using the Debian provided 3.2 packages but can easily apply a patch if I can find it... I'll go searching tonight.

Thanks

James

#4 lore raw
Quoted 12 lines · James Harper
Quoted 4 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There's a bug in the serial port emulation in qemu related to saving

and

Quoted 1 line

restoring. There's a patch floating around somewhere which fixes it,

but

Quoted 1 line

depending on what source tree you're using you may not have it yet.

One

Quoted 2 lines

of the critical registers isn't saved and also isn't regenerated at restore time, meaning that serial port interrupts stop getting

delivered

Quoted 8 lines
Quoted 2 lines

to the guest properly.

That sounds like the sort of problem I'm seeing. It's obviously a regression though as it was working in 3.1.

I'm using the Debian provided 3.2 packages but can easily apply a patch if I can find it... I'll go searching tonight.

It's probably this one:

http://xenbits.xensource.com/xen-unstable.hg/rev/13e10678e714

#5 lore raw
Quoted 5 lines
Quoted 5 lines

That sounds like the sort of problem I'm seeing. It's obviously a regression though as it was working in 3.1.

I'm using the Debian provided 3.2 packages but can easily apply a

patch

Quoted 6 lines
Quoted 1 line

if I can find it... I'll go searching tonight.

It's probably this one:

http://xenbits.xensource.com/xen-unstable.hg/rev/13e10678e714

I think that fixed it. Thanks.

James