Skip to contentSkip to conversation

x86/hvm: unify HVM and PVH hypercall tables.

RFC PATCH Konrad Rzeszutek Wilk 2 participants 3 messages May 15, 2014 – May 16, 2014

lore
Share & tools
lore
#0 lore raw
Quoted 18 lines · Tim Deegan
Quoted 16 lines · Konrad Rzeszutek Wilk
Quoted 11 lines · Tim Deegan

Stage one of many in merging PVH and HVM code in the hypervisor.

This exposes a few new hypercalls to HVM guests, all of which were already available to PVH ones:

  - XENMEM_memory_map / XENMEM_machine_memory_map / XENMEM_machphys_mapping:
    These are basically harmless, if a bit useless to plain HVM.

  - VCPUOP_send_nmi / VCPUOP_initialise / VCPUOP[_is]_up / VCPUOP_down This will eventually let HVM guests bring up APs the way PVH ones do. For now, the VCPUOP_initialise paths are still gated on is_pvh.

I had a similar patch to enable this under HVM and found out that if the guest issues VCPUOP_send_nmi we get in Linux:

Quoted 7 lines
Quoted 4 lines

[    3.611742] Corrupted low memory at c000fffc (fffc phys) = 00029b00 [    2.386785] Corrupted low memory at ffff88000000fff8 (fff8 phys) = 2990000000000

http://mid.gmane.org/[email protected]

Right, thanks.  Do you think that's likely to be a hypervisor bug, or just a "don't do that then"?

It is a bug. But I don't know where and had not had a chance to investigate this further.

My feeling is that it is APIC emulation but I might be quite off.

Quoted 4 lines

AFAICT PVH domains need this as they have no other way of sending NMIs.

Perhaps. The vAPIC that Boris had been looking at could make this work via the APIC path.

Quoted 1 line

Tim.

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

#1 lore raw
Quoted 35 lines · On Thu, 15 May 2014 10:32:24 -0400 Konrad Rzeszutek Wilk…
Quoted 21 lines · Tim Deegan
Quoted 19 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Tim Deegan

Stage one of many in merging PVH and HVM code in the hypervisor.

This exposes a few new hypercalls to HVM guests, all of which were already available to PVH ones:

Quoted 8 lines

  - XENMEM_memory_map / XENMEM_machine_memory_map /
XENMEM_machphys_mapping: These are basically harmless, if a bit useless to plain HVM.

  - VCPUOP_send_nmi / VCPUOP_initialise / VCPUOP[_is]_up / VCPUOP_down This will eventually let HVM guests bring up APs the way PVH ones do. For now, the VCPUOP_initialise paths are still gated on is_pvh.

I had a similar patch to enable this under HVM and found out that if the guest issues VCPUOP_send_nmi we get in Linux:

Quoted 8 lines
Quoted 5 lines

[    3.611742] Corrupted low memory at c000fffc (fffc phys) = 00029b00 [    2.386785] Corrupted low memory at ffff88000000fff8 (fff8 phys) = 2990000000000

http://mid.gmane.org/[email protected]

Right, thanks.  Do you think that's likely to be a hypervisor bug, or just a "don't do that then"?

It is a bug. But I don't know where and had not had a chance to investigate this further.

Quoted 8 lines

My feeling is that it is APIC emulation but I might be quite off.

Quoted 4 lines

AFAICT PVH domains need this as they have no other way of sending NMIs.

Perhaps. The vAPIC that Boris had been looking at could make this work via the APIC path.

But, VCPUOP_send_nmi works for PVH right, and only HVM has problem?

mukesh

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

#2 lore raw
Quoted 40 lines · Mukesh Rathor
Quoted 37 lines · On Thu, 15 May 2014 10:32:24 -0400 Konrad Rzeszutek Wilk…
Quoted 21 lines · Tim Deegan
Quoted 19 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Tim Deegan

Stage one of many in merging PVH and HVM code in the hypervisor.

This exposes a few new hypercalls to HVM guests, all of which were already available to PVH ones:

Quoted 8 lines

  - XENMEM_memory_map / XENMEM_machine_memory_map /
XENMEM_machphys_mapping: These are basically harmless, if a bit useless to plain HVM.

  - VCPUOP_send_nmi / VCPUOP_initialise / VCPUOP[_is]_up / VCPUOP_down This will eventually let HVM guests bring up APs the way PVH ones do. For now, the VCPUOP_initialise paths are still gated on is_pvh.

I had a similar patch to enable this under HVM and found out that if the guest issues VCPUOP_send_nmi we get in Linux:

Quoted 8 lines
Quoted 5 lines

[    3.611742] Corrupted low memory at c000fffc (fffc phys) = 00029b00 [    2.386785] Corrupted low memory at ffff88000000fff8 (fff8 phys) = 2990000000000

http://mid.gmane.org/[email protected]

Right, thanks.  Do you think that's likely to be a hypervisor bug, or just a "don't do that then"?

It is a bug. But I don't know where and had not had a chance to investigate this further.

My feeling is that it is APIC emulation but I might be quite off.

Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

AFAICT PVH domains need this as they have no other way of sending NMIs.

Perhaps. The vAPIC that Boris had been looking at could make this work via the APIC path.

But, VCPUOP_send_nmi works for PVH right, and only HVM has problem?

I did not test PVH - just tried with HVM. It might be that the PVH won't have the issue.

Quoted 3 lines

mukesh