* [PATCH] -xen-attach is needed for pvh boot with qemu-xen
@ 2018-01-14 21:12 Michael Young
2018-01-15 10:01 ` Roger Pau Monné
0 siblings, 1 reply; 2+ messages in thread
From: Michael Young @ 2018-01-14 21:12 UTC (permalink / raw)
To: xen-devel; +Cc: Wei Liu, Ian Jackson
Currently the boot of a pvh guest using the qemu-xen device model fails
with the error
xen emulation not implemented (yet)
in the qemu-dm log file. This patch adds the missing -xen-attach
argument.
Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
---
tools/libxl/libxl_dm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index a2ea95a9be..3a839d5c1e 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -1021,7 +1021,8 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
*/
flexarray_append(dm_args, "-no-user-config");
- if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
+ if ((b_info->type == LIBXL_DOMAIN_TYPE_PV) ||
+ (b_info->type == LIBXL_DOMAIN_TYPE_PVH)) {
flexarray_append(dm_args, "-xen-attach");
}
--
2.14.3
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] -xen-attach is needed for pvh boot with qemu-xen
2018-01-14 21:12 [PATCH] -xen-attach is needed for pvh boot with qemu-xen Michael Young
@ 2018-01-15 10:01 ` Roger Pau Monné
0 siblings, 0 replies; 2+ messages in thread
From: Roger Pau Monné @ 2018-01-15 10:01 UTC (permalink / raw)
To: Michael Young; +Cc: xen-devel, Wei Liu, Ian Jackson
On Sun, Jan 14, 2018 at 09:12:51PM +0000, Michael Young wrote:
> Currently the boot of a pvh guest using the qemu-xen device model fails
> with the error
> xen emulation not implemented (yet)
> in the qemu-dm log file. This patch adds the missing -xen-attach
> argument.
>
> Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
> ---
> tools/libxl/libxl_dm.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index a2ea95a9be..3a839d5c1e 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -1021,7 +1021,8 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
> */
> flexarray_append(dm_args, "-no-user-config");
>
> - if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
> + if ((b_info->type == LIBXL_DOMAIN_TYPE_PV) ||
> + (b_info->type == LIBXL_DOMAIN_TYPE_PVH)) {
Better write this as b_info->type != LIBXL_DOMAIN_TYPE_HVM.
With that fixed:
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
And sorry for that, I could bet I've tried that.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-15 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14 21:12 [PATCH] -xen-attach is needed for pvh boot with qemu-xen Michael Young
2018-01-15 10:01 ` Roger Pau Monné
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.