Skip to contentSkip to conversation

PVH guess crash with memory < maxmem

DISCUSSION Marek Marczykowski-Górecki 2 participants 3 messages Aug 8, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I'm having troubles with starting PVH guest when memory < maxmem. Exact crash message:

    (XEN) d2v0 EPT violation 0x182 (-w-/---) gpa 0x0000003e7ff000 
    mfn 0xffffffffffffffff type 4
    (XEN) d2v0 Walking EPT tables for GFN 3e7ff:
    (XEN) d2v0  gfn exceeds max_mapped_pfn 19000
    (XEN) d2v0  --- GLA 0xffff88003e7ff000
    (XEN) domain_crash called from vmx.c:3022
    (XEN) Domain 2 (vcpu#0) crashed on cpu#2:
    (XEN) ----[ Xen-4.7.0  x86_64  debug=n  Not tainted ]----
    (XEN) CPU:    2
    (XEN) RIP:    0010:[<ffffffff813b4d62>]
    (XEN) RFLAGS: 0000000000010016   CONTEXT: hvm guest (d2v0)
    (XEN) rax: 0000000000000000   rbx: 0000000000000001   rcx: 000000000000003f
    (XEN) rdx: 000000003e7ff000   rsi: 0000000002b96000   rdi: ffff88003e7ff000
    (XEN) rbp: ffffffff81c03b68   rsp: ffffffff81c03b40   r8: 0000000000000200
    (XEN) r9:  0000000000000000   r10: 0000000002b96000   r11: 0000000000000000
    (XEN) r12: 0000000000000001   r13: 000000000003e7ff   r14: ffff880000000000
    (XEN) r15: ffff880001c10828   cr0: 0000000080050033   cr4: 0000000000000020
    (XEN) cr3: 0000000001c0e000   cr2: 0000000000000000
    (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: 0010
    (XEN) Guest stack trace from rsp=ffffffff81c03b40:
    (XEN)   Fault while accessing guest memory.

Guest kernel: 4.1.13, guest config attached.

Is there any way around it, or such configuration isn't supported yet?

Or maybe it is possible to increase maxmem later using some trick (memory hotplug or something)?

Signature · 5 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

name = "pvhtest"
uuid = "ac823572-853b-4c8c-ba77-47aa515ccd63"
maxmem = 400
memory = 1000
pvh = 1
vcpus = 4
localtime = 0
on_poweroff = "destroy"
on_reboot = "destroy"
on_crash = "destroy"
kernel = "/var/lib/qubes/vm-kernels/4.1.13-6/vmlinuz"
ramdisk = "/var/lib/qubes/vm-kernels/4.1.13-6/initramfs"
extra = "root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH 3 nopat" disk = [ "/var/lib/qubes/vm-templates/fedora-23-clone/root.img,raw,xvda,r,backendtype=phy",

	 "/var/lib/qubes/appvms/pvhtest/private.img,raw,xvdb,w,backendtype=phy",
	"/var/lib/qubes/appvms/pvhtest/volatile.img,raw,xvdc,w,backendtype=phy",
	"/var/lib/qubes/vm-kernels/4.1.13-6/modules.img,raw,xvdd,r,backendtype=phy" ]

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw
Quoted 25 lines
Quoted 1 line
Quoted 1 line · On 08.08.16 at 12:40, <[email protected]> wrote:

I'm having troubles with starting PVH guest when memory < maxmem. Exact crash message:

    (XEN) d2v0 EPT violation 0x182 (-w-/---) gpa 0x0000003e7ff000     mfn 0xffffffffffffffff type 4
    (XEN) d2v0 Walking EPT tables for GFN 3e7ff:
    (XEN) d2v0  gfn exceeds max_mapped_pfn 19000
    (XEN) d2v0  --- GLA 0xffff88003e7ff000
    (XEN) domain_crash called from vmx.c:3022
    (XEN) Domain 2 (vcpu#0) crashed on cpu#2:
    (XEN) ----[ Xen-4.7.0  x86_64  debug=n  Not tainted ]----
    (XEN) CPU:    2
    (XEN) RIP:    0010:[<ffffffff813b4d62>]
    (XEN) RFLAGS: 0000000000010016   CONTEXT: hvm guest (d2v0)
    (XEN) rax: 0000000000000000   rbx: 0000000000000001   rcx: 000000000000003f
    (XEN) rdx: 000000003e7ff000   rsi: 0000000002b96000   rdi: ffff88003e7ff000
    (XEN) rbp: ffffffff81c03b68   rsp: ffffffff81c03b40   r8: 0000000000000200
    (XEN) r9:  0000000000000000   r10: 0000000002b96000   r11: 0000000000000000
    (XEN) r12: 0000000000000001   r13: 000000000003e7ff   r14: ffff880000000000
    (XEN) r15: ffff880001c10828   cr0: 0000000080050033   cr4: 0000000000000020
    (XEN) cr3: 0000000001c0e000   cr2: 0000000000000000
    (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: 0010
    (XEN) Guest stack trace from rsp=ffffffff81c03b40:
    (XEN)   Fault while accessing guest memory.
Quoted 3 lines

Guest kernel: 4.1.13, guest config attached.

Is there any way around it, or such configuration isn't supported yet?

Indeed iirc PVHv1 and PoD are incompatible with one another, and I don't know any possible workaround. And then I'm not sure it's worth your time playing with PVHv1 in the first place.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 3 lines · Jan Beulich

Indeed iirc PVHv1 and PoD are incompatible with one another, and I don't know any possible workaround. And then I'm not sure it's worth your time playing with PVHv1 in the first place.

Thanks.

Signature · 5 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel