All of lore.kernel.org
 help / color / mirror / Atom feed
From: "James Harper" <james.harper@bendigoit.com.au>
To: Tim Deegan <Tim.Deegan@citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: RE: xm save + restore crashes Windows 200832-bit(4.0.2-rc2-pre) (AMD only)
Date: Wed, 26 Jan 2011 09:25:17 +1100	[thread overview]
Message-ID: <AEC6C66638C05B468B556EA548C1A77D01BB9287@trantor> (raw)
In-Reply-To: <20110125222149.GA8849@whitby.uk.xensource.com>

> >
> > Just to clarify, in the restore path I print the values to be saved
to
> > the segment registers, then I read the segment registers and print
the
> > values that are in them. They aren't the same. Doesn't that sound
like a
> > problem on the restore side?
> 
> That would depend on how you read the values after the restore - the
> patch is for a bug that I think is causing svm_get_segment_register()
to
> corrupt the vmcb if it's called before the vcpu is first scheduled
(and
> to return the corrupted values).
> 

I see. I just tested and while I still get the crash, all the segment
registers are now correct after applying your patch.

The only thing I can see that's different now is the MTRR's.

James

--- before      2011-01-26 09:16:19.030666000 +1100
+++ after       2011-01-26 09:21:13.374664075 +1100
@@ -1,4 +1,4 @@
-HVM save record for domain 4
+HVM save record for domain 6
 Entry 0: type 1 instance 0, length 24
      Header: magic 0x54381286, version 1
              Xen changeset 0
@@ -34,7 +34,7 @@
       MSR flags 0xffffffffffffffff  lstar 0x0000000000000000
            star 0x0000000000000000  cstar 0x0000000000000000
          sfmask 0x0000000000000000   efer 0x0000000000000800
-            tsc 0x000000172cbec19e
+            tsc 0x0000005866dd3e1f
           event 0x00000000 error 0x00000000
     FPU:    fcw 0x027f fsw 0x0000
             ftw 0x00 (0x00) fop 0x0000
@@ -185,11 +185,11 @@
                rd_state 0, wr_state 0, wr_latch 0, rw_mode 0
                mode 0xff, bcd 0, gate 0x1
 Entry 11: type 11 instance 0, length 16
-    RTC: regs 0x16 0x00 0x16 0x00 0x09 0x00 0x03 0x26
+    RTC: regs 0x12 0x00 0x21 0x00 0x09 0x00 0x03 0x26
               0x01 0x11 0x2a 0x42 0x00 0x80, index 0x0c
 Entry 12: type 12 instance 0, length 1048
     HPET: capability 0xf424008086a201 config 0
-          isr 0 counter 0x1f65b81fc
+          isr 0 counter 0x43a264ae0
           timer0 config 0xf0000000000030 cmp 0
           timer0 period 0 fsb 0
           timer1 config 0xf0000000000030 cmp 0
@@ -200,8 +200,8 @@
     ACPI PM: TMR_VAL 0x19b239a8, PM1a_STS 0x0, PM1a_EN 0x321
 Entry 14: type 14 instance 0, length 240
     MTRR: PAT 0x7010600070106, cap 0x508, default 0xc06
-          var 0 0x00000000f0000000 0x000000fff8000800
-          var 1 0x00000000f8000000 0x000000fffc000800
+          var 0 0x00000000f0000000 0x0000000000000000
+          var 1 0x00000000f8000000 0x0000000000000000
           var 2 0x0000000000000000 0x0000000000000000
           var 3 0x0000000000000000 0x0000000000000000
           var 4 0x0000000000000000 0x0000000000000000

      reply	other threads:[~2011-01-25 22:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25  4:20 xm save + restore crashes Windows 2008 32-bit (4.0.2-rc2-pre) James Harper
2011-01-25  9:24 ` Tim Deegan
2011-01-25  9:28   ` James Harper
2011-01-25 10:39     ` Tim Deegan
2011-01-25 10:43       ` James Harper
2011-01-25 10:53         ` Tim Deegan
2011-01-25 11:01           ` James Harper
2011-01-25 11:12             ` Tim Deegan
2011-01-25 11:24           ` James Harper
2011-01-25 11:37           ` James Harper
2011-01-25 11:52             ` xm save + restore crashes Windows 2008 32-bit(4.0.2-rc2-pre) James Harper
2011-01-25 13:35               ` xm save + restore crashes Windows 200832-bit(4.0.2-rc2-pre) (AMD only) James Harper
2011-01-25 14:37                 ` Tim Deegan
2011-01-25 22:11                   ` James Harper
2011-01-25 22:21                     ` Tim Deegan
2011-01-25 22:25                       ` James Harper [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AEC6C66638C05B468B556EA548C1A77D01BB9287@trantor \
    --to=james.harper@bendigoit.com.au \
    --cc=Tim.Deegan@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.