* [PATCH] libxl: set vuart_gfn in libxl__build_hvm
@ 2020-11-05 21:15 Stefano Stabellini
2020-11-06 15:11 ` Anthony PERARD
0 siblings, 1 reply; 4+ messages in thread
From: Stefano Stabellini @ 2020-11-05 21:15 UTC (permalink / raw)
To: xen-devel
Cc: takahiro.akashi, alex.bennee, masami.hiramatsu, ian.jackson, wl,
anthony.perard, sstabellini
libxl: set vuart_gfn in libxl__build_hvm
Setting vuart_gfn was missed when switching ARM guests to the PVH build.
Like libxl__build_pv, libxl__build_hvm should set state->vuart_gfn to
dom->vuart_gfn.
Without this change, xl console cannot connect to the vuart console (-t
vuart), see https://marc.info/?l=xen-devel&m=160402342101366.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
index f8661e90d4..36fe8915e7 100644
--- a/tools/libxl/libxl_dom.c
+++ b/tools/libxl/libxl_dom.c
@@ -1184,6 +1184,7 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid,
LOG(ERROR, "hvm build set params failed");
goto out;
}
+ state->vuart_gfn = dom->vuart_gfn;
rc = hvm_build_set_xs_values(gc, domid, dom, info);
if (rc != 0) {
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] libxl: set vuart_gfn in libxl__build_hvm
2020-11-05 21:15 [PATCH] libxl: set vuart_gfn in libxl__build_hvm Stefano Stabellini
@ 2020-11-06 15:11 ` Anthony PERARD
2020-11-06 16:17 ` Wei Liu
0 siblings, 1 reply; 4+ messages in thread
From: Anthony PERARD @ 2020-11-06 15:11 UTC (permalink / raw)
To: Stefano Stabellini
Cc: xen-devel, takahiro.akashi, alex.bennee, masami.hiramatsu,
ian.jackson, wl
On Thu, Nov 05, 2020 at 01:15:05PM -0800, Stefano Stabellini wrote:
> libxl: set vuart_gfn in libxl__build_hvm
The subject is written two times ;-)
> Setting vuart_gfn was missed when switching ARM guests to the PVH build.
> Like libxl__build_pv, libxl__build_hvm should set state->vuart_gfn to
> dom->vuart_gfn.
>
> Without this change, xl console cannot connect to the vuart console (-t
> vuart), see https://marc.info/?l=xen-devel&m=160402342101366.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
>
> diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
> index f8661e90d4..36fe8915e7 100644
> --- a/tools/libxl/libxl_dom.c
> +++ b/tools/libxl/libxl_dom.c
> @@ -1184,6 +1184,7 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid,
> LOG(ERROR, "hvm build set params failed");
> goto out;
> }
> + state->vuart_gfn = dom->vuart_gfn;
>
> rc = hvm_build_set_xs_values(gc, domid, dom, info);
> if (rc != 0) {
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Thanks,
--
Anthony PERARD
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libxl: set vuart_gfn in libxl__build_hvm
2020-11-06 15:11 ` Anthony PERARD
@ 2020-11-06 16:17 ` Wei Liu
2020-11-07 1:46 ` Stefano Stabellini
0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2020-11-06 16:17 UTC (permalink / raw)
To: Anthony PERARD
Cc: Stefano Stabellini, xen-devel, takahiro.akashi, alex.bennee,
masami.hiramatsu, ian.jackson, wl
On Fri, Nov 06, 2020 at 03:11:46PM +0000, Anthony PERARD wrote:
> On Thu, Nov 05, 2020 at 01:15:05PM -0800, Stefano Stabellini wrote:
> > libxl: set vuart_gfn in libxl__build_hvm
>
> The subject is written two times ;-)
>
> > Setting vuart_gfn was missed when switching ARM guests to the PVH build.
> > Like libxl__build_pv, libxl__build_hvm should set state->vuart_gfn to
> > dom->vuart_gfn.
> >
> > Without this change, xl console cannot connect to the vuart console (-t
> > vuart), see https://marc.info/?l=xen-devel&m=160402342101366.
> >
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
> >
> > diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
> > index f8661e90d4..36fe8915e7 100644
> > --- a/tools/libxl/libxl_dom.c
> > +++ b/tools/libxl/libxl_dom.c
> > @@ -1184,6 +1184,7 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid,
> > LOG(ERROR, "hvm build set params failed");
> > goto out;
> > }
> > + state->vuart_gfn = dom->vuart_gfn;
> >
> > rc = hvm_build_set_xs_values(gc, domid, dom, info);
> > if (rc != 0) {
>
> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
This patch is based on an old tree. I have ported it to staging. Please
check the code and shout if it is not done correctly.
Wei.
>
> Thanks,
>
> --
> Anthony PERARD
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libxl: set vuart_gfn in libxl__build_hvm
2020-11-06 16:17 ` Wei Liu
@ 2020-11-07 1:46 ` Stefano Stabellini
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Stabellini @ 2020-11-07 1:46 UTC (permalink / raw)
To: Wei Liu
Cc: Anthony PERARD, Stefano Stabellini, xen-devel, takahiro.akashi,
alex.bennee, masami.hiramatsu, ian.jackson
On Fri, 6 Nov 2020, Wei Liu wrote:
> On Fri, Nov 06, 2020 at 03:11:46PM +0000, Anthony PERARD wrote:
> > On Thu, Nov 05, 2020 at 01:15:05PM -0800, Stefano Stabellini wrote:
> > > libxl: set vuart_gfn in libxl__build_hvm
> >
> > The subject is written two times ;-)
> >
> > > Setting vuart_gfn was missed when switching ARM guests to the PVH build.
> > > Like libxl__build_pv, libxl__build_hvm should set state->vuart_gfn to
> > > dom->vuart_gfn.
> > >
> > > Without this change, xl console cannot connect to the vuart console (-t
> > > vuart), see https://marc.info/?l=xen-devel&m=160402342101366.
> > >
> > > Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
> > >
> > > diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
> > > index f8661e90d4..36fe8915e7 100644
> > > --- a/tools/libxl/libxl_dom.c
> > > +++ b/tools/libxl/libxl_dom.c
> > > @@ -1184,6 +1184,7 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid,
> > > LOG(ERROR, "hvm build set params failed");
> > > goto out;
> > > }
> > > + state->vuart_gfn = dom->vuart_gfn;
> > >
> > > rc = hvm_build_set_xs_values(gc, domid, dom, info);
> > > if (rc != 0) {
> >
> > Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
>
> This patch is based on an old tree. I have ported it to staging. Please
> check the code and shout if it is not done correctly.
all good, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-07 1:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 21:15 [PATCH] libxl: set vuart_gfn in libxl__build_hvm Stefano Stabellini
2020-11-06 15:11 ` Anthony PERARD
2020-11-06 16:17 ` Wei Liu
2020-11-07 1:46 ` Stefano Stabellini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).