All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] Proxying Hyper-V hypercalls from L2 to L0
@ 2019-12-30 16:24 Wei Liu
  2019-12-31 16:09 ` Wei Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Liu @ 2019-12-30 16:24 UTC (permalink / raw)
  To: Xen-devel
  Cc: Juergen Gross, Wei Liu, Wei Liu, Paul Durrant, Andrew Cooper,
	Michael Kelley, Jan Beulich, Roger Pau Monné

Hi all

As much as I try to avoid writing code to proxy Hyper-V hypercalls, it
seems unavoidable for PV guests, because Hyper-V requires hypercalls
to be issued with CPL=0.

This means for PV Dom0 I will need to add code in Xen to support
Hyper-V's ABIs, along with appropriate validations.

How much do you care about running a PV Dom0 in this Xen on Hyper-V
setup? I personally would certainly go full on PVH if possible. :-)

Thanks,
Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xen-devel] Proxying Hyper-V hypercalls from L2 to L0
  2019-12-30 16:24 [Xen-devel] Proxying Hyper-V hypercalls from L2 to L0 Wei Liu
@ 2019-12-31 16:09 ` Wei Liu
  2020-01-08 14:21   ` Roger Pau Monné
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Liu @ 2019-12-31 16:09 UTC (permalink / raw)
  To: Wei Liu
  Cc: Juergen Gross, Wei Liu, Paul Durrant, Andrew Cooper,
	Michael Kelley, Jan Beulich, Xen-devel, Roger Pau Monné

On Mon, 30 Dec 2019 at 16:24, Wei Liu <wl@xen.org> wrote:
>
> Hi all
>
> As much as I try to avoid writing code to proxy Hyper-V hypercalls, it
> seems unavoidable for PV guests, because Hyper-V requires hypercalls
> to be issued with CPL=0.
>
> This means for PV Dom0 I will need to add code in Xen to support
> Hyper-V's ABIs, along with appropriate validations.
>
> How much do you care about running a PV Dom0 in this Xen on Hyper-V
> setup? I personally would certainly go full on PVH if possible. :-)
>

I tested PVH Dom0 in Xen on Hyper-V setup just now. Unfortunately
Hyper-V doesn't support vIOMMU yet. Dom0 didn't get any interrupt in
that setup.

I guess like it or not in the short term I will have to make PV Dom0 work.

Wei.


> Thanks,
> Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xen-devel] Proxying Hyper-V hypercalls from L2 to L0
  2019-12-31 16:09 ` Wei Liu
@ 2020-01-08 14:21   ` Roger Pau Monné
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Pau Monné @ 2020-01-08 14:21 UTC (permalink / raw)
  To: Wei Liu
  Cc: Juergen Gross, Wei Liu, Paul Durrant, Andrew Cooper,
	Michael Kelley, Jan Beulich, Xen-devel

On Tue, Dec 31, 2019 at 04:09:09PM +0000, Wei Liu wrote:
> On Mon, 30 Dec 2019 at 16:24, Wei Liu <wl@xen.org> wrote:
> >
> > Hi all
> >
> > As much as I try to avoid writing code to proxy Hyper-V hypercalls, it
> > seems unavoidable for PV guests, because Hyper-V requires hypercalls
> > to be issued with CPL=0.
> >
> > This means for PV Dom0 I will need to add code in Xen to support
> > Hyper-V's ABIs, along with appropriate validations.
> >
> > How much do you care about running a PV Dom0 in this Xen on Hyper-V
> > setup? I personally would certainly go full on PVH if possible. :-)
> >
> 
> I tested PVH Dom0 in Xen on Hyper-V setup just now. Unfortunately
> Hyper-V doesn't support vIOMMU yet. Dom0 didn't get any interrupt in
> that setup.

Without DMA remapping I/O devices won't be able to get the real
addresses, and thus won't work correctly or at all. The only option in
such scenario lacking an IOMMU would be to build dom0 with an identity
memory map, but I would avoid going that route, as I think it's
going to cause more pain that just using a PV dom0.

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-08 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-30 16:24 [Xen-devel] Proxying Hyper-V hypercalls from L2 to L0 Wei Liu
2019-12-31 16:09 ` Wei Liu
2020-01-08 14:21   ` 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.