PVH hypercall interface
Hi,
What hypercalls are available for PVH guests? How is it different for HVM guests? Is it documented somewhere?
For example I'd expect that do_mmu_update is available only for PV guests, but looking at the code I can't find anything preventing other guest types from using it (no, some obscure conditions deep in execution path doesn't count).
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
Quoted 3 lines · Marek Marczykowski-Górecki
Hi,
What hypercalls are available for PVH guests?
First of all, be aware that there is currently some chaos in the codebase which is soon to be resolved.
What you are looking for is HVMLite, which will likely be renamed to PVH once it is complete. Original PVH will then be filed in /dev/null, leaving only a set of lessons in git history.
Quoted 1 line
How is it different for HVM guests?
HVMLite guests are just HVM guests without qemu.
Roger (CC'd) is leading the effort. You select an HVMLite guest by choosing device-model = None in the xl configuration file, rather than setting pvh=1
Quoted 1 line
Is it documented somewhere?
There are patches on the list.
Also, docs/misc/hvmlite.markdown
Quoted 4 lines
For example I'd expect that
do_mmu_updateis available only for PV guests, but looking at the code I can't find anything preventing other guest types from using it (no, some obscure conditions deep in execution path doesn't count).
HVM guests use the hvm_hypercall_table, not the hypercall tables in entry.S
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 24 lines · Andrew Cooper
Quoted 3 lines · Marek Marczykowski-Górecki
Hi,
What hypercalls are available for PVH guests?
First of all, be aware that there is currently some chaos in the codebase which is soon to be resolved.
What you are looking for is HVMLite, which will likely be renamed to PVH once it is complete. Original PVH will then be filed in
/dev/null, leaving only a set of lessons in git history.Quoted 1 line
How is it different for HVM guests?
HVMLite guests are just HVM guests without qemu.
Roger (CC'd) is leading the effort. You select an HVMLite guest by choosing device-model = None in the xl configuration file, rather than setting pvh=1
Quoted 1 line
Is it documented somewhere?
There are patches on the list.
Quoted 8 lines
Also, docs/misc/hvmlite.markdown
Quoted 4 lines
For example I'd expect that
do_mmu_updateis available only for PV guests, but looking at the code I can't find anything preventing other guest types from using it (no, some obscure conditions deep in execution path doesn't count).HVM guests use the
hvm_hypercall_table, not the hypercall tables inentry.S
They have access to the same set of hypercalls as HVM guests, in fact the hypercall table is shared between HVM and HVMlite guests (to become PVH, just using HVMlite here to avoid confusion). Classic PVH guests had their own hypercall table, but as Andrew said you should not look at those.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 32 lines · Roger Pau Monne
Quoted 31 lines · Andrew Cooper
Quoted 3 lines · Marek Marczykowski-Górecki
Hi,
What hypercalls are available for PVH guests?
First of all, be aware that there is currently some chaos in the codebase which is soon to be resolved.
What you are looking for is HVMLite, which will likely be renamed to PVH once it is complete. Original PVH will then be filed in
/dev/null, leaving only a set of lessons in git history.Quoted 1 line
How is it different for HVM guests?
HVMLite guests are just HVM guests without qemu.
Roger (CC'd) is leading the effort. You select an HVMLite guest by choosing device-model = None in the xl configuration file, rather than setting pvh=1
Quoted 1 line
Is it documented somewhere?
There are patches on the list.
Also, docs/misc/hvmlite.markdown
Quoted 4 lines
For example I'd expect that
do_mmu_updateis available only for PV guests, but looking at the code I can't find anything preventing other guest types from using it (no, some obscure conditions deep in execution path doesn't count).
Quoted 6 lines
Quoted 1 line
HVM guests use the
hvm_hypercall_table, not the hypercall tables inentry.SThey have access to the same set of hypercalls as HVM guests, in fact the hypercall table is shared between HVM and HVMlite guests (to become PVH, just using HVMlite here to avoid confusion). Classic PVH guests had their own hypercall table, but as Andrew said you should not look at those.
Thanks for the explanation. What is the current state of HVMlite? I see "none" is valid value for "device_model_version" already, but if I try to start such guest, it fails at x86_compat call (tries to boot it as PV guest). I guess it's because of missing kernel support. Is "[PATCH v2 00/11] HVMlite domU support" sent in Feb the latest version available? When it is planned to have it in vanilla kernel?
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
Quoted 6 lines · Marek Marczykowski-Górecki
Thanks for the explanation. What is the current state of HVMlite? I see "none" is valid value for "
device_model_version" already, but if I try to start such guest, it fails atx86_compatcall (tries to boot it as PV guest). I guess it's because of missing kernel support. Is "[PATCH v2 00/11] HVMlite domU support" sent in Feb the latest version available? When it is planned to have it in vanilla kernel?
This has been delayed by ACPI rework in Xen. I will post Linux domU patches as soon as that is done.
-boris
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel