[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFH]: AMD SVM #PF error code with P and RSVD bit....



Hi,

I am trying to debug this triple fault bringing up PVH linux domU on
AMD.

Instruction:
ffffffff81d2d976: 8:dmi_scan_machine+b7          mov (%r12),
%rax r12: ffffffffff46e000

This first causes #PF:
(XEN) exitcode = 0x4e exitintinfo = 0
(XEN) exitinfo1 = 0x9 exitinfo2 = 0xffffffffff46e000 

erro_code == 0x9 => RSVD bit set. according to the APM:

   RSVâBit 3. If this bit is set to 1, the page fault is a result
   of the processor reading a 1 from a reserved field within a
   page-translation-table entry. This type of page fault occurs only
   when CR4.PSE=1 or CR4.PAE=1.

My CR4 == 0x0000000000000060 == PAE MCE (Full vmcb below). 
However, all PTEs seem OK, all NPT entries seem OK too.

PTE entries (l4 thru L1):

0000000001c16067 0000000001c18067 0000000001e8d067 80000000000f0463 

P2M (L4 thru L1):

6000000102b75667 6000000102b74467 6000000102b7f267 6000000101a41067

The P bit being set in error code doesn't make sense either.. 

Appreciate any help.

thanks
Mukesh


VMCB:
(XEN) general1_intercepts = 0xbd44000f general2_intercepts = 0x2e7f
(XEN) iopm_base_pa = 0xcfce9000 msrpm_base_pa = 0x100e10000 tsc_offset
= 0 (XEN) tlb_control = 0 vintr = 0x1000000 interrupt_shadow = 0
(XEN) exitcode = 0x4e exitintinfo = 0
(XEN) exitinfo1 = 0x9 exitinfo2 = 0xffffffffff46e000 
(XEN) np_enable = 1 guest_asid = 0x5
(XEN) cpl = 0 efer = 0x1500 star = 0 lstar = 0
(XEN) CR0 = 0x0000000080050033 CR2 = 0x0000000000000000
(XEN) CR3 = 0x0000000001c13000 CR4 = 0x0000000000000060
(XEN) RSP = 0xffffffff81c01df8  RIP = 0xffffffff81d2d976
(XEN) RAX = 0x0000000000000000  RFLAGS=0x0000000000000087
(XEN) DR6 = 0x00000000ffff0ff0, DR7 = 0x0000000000000400
(XEN) CSTAR = 0x0000000000000000 SFMask = 0x0000000000000000
(XEN) KernGSBase = 0x0000000000000000 PAT = 0x0007040600070406 
(XEN) H_CR3 = 0x0000000100faa000 CleanBits = 0
(XEN) CS: sel=0x0010, attr=0x029b, limit=0xffffffff,
base=0x0000000000000000 (XEN) DS: sel=0x0000, attr=0x0000,
limit=0xffffffff, base=0x0000000000000000 (XEN) SS: sel=0x0000,
attr=0x0c93, limit=0xffffffff, base=0x0000000000000000 (XEN) ES:
sel=0x0000, attr=0x0000, limit=0xffffffff, base=0x0000000000000000
(XEN) FS: sel=0x0000, attr=0x0000, limit=0xffffffff,
base=0x0000000000000000 (XEN) GS: sel=0x0000, attr=0x0000,
limit=0xffffffff, base=0xffffffff81ccf000 (XEN) GDTR: sel=0x0000,
attr=0x0000, limit=0x0000007f, base=0xffffffff81cd3000 (XEN) LDTR:
sel=0x0000, attr=0x0000, limit=0x00000000, base=0x0000000000000000
(XEN) IDTR: sel=0x0000, attr=0x0000, limit=0x00000fff,
base=0xffffffff81e8a000 (XEN) TR: sel=0x0000, attr=0x008b,
limit=0x000000ff, base=0x0000000000000000


GDT:
ffffffff81cd3000:  0000000000000000 00cf9b000000ffff
ffffffff81cd3010:  00af9b000000ffff 00cf93000000ffff



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.