[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V


  • To: 'Wei Liu' <wl@xxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Mon, 23 Sep 2019 12:11:26 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Paul.Durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Wei Liu <liuwe@xxxxxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Michael Kelley <mikelley@xxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 23 Sep 2019 12:11:50 +0000
  • Ironport-sdr: OqyKl099bLy4qDFsBS8DTkThqgFffHWfNGEtkaknqif1WLWfRsB6AgoBuYZlDR6gDiYo12a7CN Re/CFloWjvpl5yYYJm5sod1vjFhRNH389JOJ1fVs1O9Xy9xCyiqht1PK2wEL6AEqMKO/nYIuGc p5XwuH27yYIMZpVuxzt9E4CaENvaVuBRnPUgCLKCUg3KkDa9iB7IOrkkoBlezL+cck2Dh1lSaz SkRCvmGeGEfFyvKEqz6bqX+8odQWhEUMEs/aIVPRlWnV6C4Y8D3N4TCM343h45FT2KnJZoSG59 hTQ=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVcfc0mf3MiCY5wEmvlk07Intk2qc5FCDA///qIQCAACrzIA==
  • Thread-topic: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

> -----Original Message-----
> From: Wei Liu <wl@xxxxxxx>
> Sent: 23 September 2019 12:27
> To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
> Cc: 'Wei Liu' <wl@xxxxxxx>; Xen Development List 
> <xen-devel@xxxxxxxxxxxxxxxxxxxx>; Wei Liu
> <liuwe@xxxxxxxxxxxxx>; Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>; Michael 
> Kelley
> <mikelley@xxxxxxxxxxxxx>; Jan Beulich <jbeulich@xxxxxxxx>; Roger Pau Monne 
> <roger.pau@xxxxxxxxxx>
> Subject: Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V
> 
> On Mon, Sep 23, 2019 at 10:48:45AM +0000, Paul Durrant wrote:
> > > -----Original Message-----
> > > From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of Wei 
> > > Liu
> > > Sent: 23 September 2019 11:09
> > > To: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxxx>
> > > Cc: Wei Liu <liuwe@xxxxxxxxxxxxx>; Wei Liu <wl@xxxxxxx>; Andrew Cooper
> <Andrew.Cooper3@xxxxxxxxxx>;
> > > Michael Kelley <mikelley@xxxxxxxxxxxxx>; Jan Beulich <jbeulich@xxxxxxxx>; 
> > > Roger Pau Monne
> > > <roger.pau@xxxxxxxxxx>
> > > Subject: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V
> > >
> > > Hi all
> > >
> > > In case you're wondering, I can already run a fully fledged Xen system on
> > > Hyper-V with emulated disk and network.
> > >
> > > This is the very first stage for porting Xen to run on Hyper-V with all 
> > > the
> > > goodies Hyper-V has to offer.  With this series, Xen can successfully 
> > > detect
> > > Hyper-V and prints out a message.  I would like to first get the directory
> > > structure and kconfig options agreed upon.
> > >
> > > There are two major areas to be worked on:
> > >   * Make Dom0 able to use Hyper-V's synthetic devices.
> > >   * Make Xen use of the synthetic timer, reference TSC and enlightenment 
> > > VMCS
> > >     and other interfaces.
> > >
> > > They aren't trivial, and time can be scarce on my side, so I intend to 
> > > post
> > > patches piece meal when they are ready.
> > >
> > > Questions and comments are welcome.
> >
> > Yay! Glad you found the time to do this :-) Making use of the synic,
> > stimer, will be useful. To get the benefit for nested guests though, I
> > assume we'll need to exposed enlightened VMCS, EPT flush, etc.
> > through?
> 
> Per TLFS, eVMCS should be used by L1 Xen.

Yes, I guess it only needs to be used by L1, but Windows is using an increasing 
number of VMs for various purposes so I think making it stack well would be 
useful.

> 
> Not sure what you meant by EPT flush. If you mean things like
> HvFlushGuestPhysicalAddressSpace, I think they should be used by Xen
> only as well. I'm not sure whether they should be expose to L2 guests.
> 

Yes, that's what I meant and, again, I was thinking about the nested Windows 
guest using VMs itself.

> There are hypercalls for virtual TLB management. We may choose to expose
> them to L2 guests for better performance.
> 

Do you mean 'Direct Virtual Flush'? The hypercalls in question are already 
handled in viridian for the purposes of remote TLB flush, so I guess it would 
be a question of wiring them through.

  Paul

> Wei.

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.