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

RE: [PATCH 3/3] x86/monitor: Add new monitor event to catch all vmexits


  • To: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Fri, 20 May 2022 00:35:02 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HrluVUIA/CwOYLY6YUDhzrkmIhpYwqc707q58L270KY=; b=jsSaAdUNnscUrtBZGIA5P+t+o/SCIt1j0+Yo+/Q5XQbmlWJpB4O0vhSXgrEJMGPI0abjmVR04Ux+LMSXIg6lEiYKOBMP3Yja6o9OUPLeyUT7s3FdaJSTBWd+aZvDRJqo2Cya1XIXTM+lpAWjwD2UEsEyQbTqE3mBOLG24AWoocD6It37TMuRNS+TvdNjD9UB3GCbDRx65Qgp2LqO2UAkd1a2NPb8HNae4ej764okC0kEKXaPFH+3SojWX5SOuCmCYB+L37s/qRBuvynge8r7xLHJ2qIbiRsQRxUHoUyd4zokte5rdWkjjvZRPS8SHQCpU/pcZiIzlHkvcj86DHyfdA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cYcXLFNo+EHEFit04f2W0JNN4uSOFhoiFJIZcCESQU7Vg7SZXZ71/5pvPEtVIlFfbSkH3LTLmCQ8+u5j1qCZTjpSeH/sQ84wmcU7MLeL24+XG7sJdpPP5695Q3CaTkVQ+o/aVLL9+RIUYX9YnMKs1Hbh0J89dyk0mSdkKkdn8tms2jDNssKbzRMSzWrgtT2PsdQStrtlkQCA+djYHKmek7vMqrs8q1dbzrfuqt2OuEpqLsGVQ9BZO6K2mqj/QkyYg46bpnYEHBlA5o3eabt3/28QImyhk2I/62OM+OFEZf00ZNBSzE5M1FVbt6kUzi0n9akHqb0R/Vguo9Hazig2Zw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com;
  • Cc: "Lengyel, Tamas" <tamas.lengyel@xxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "Anthony PERARD" <anthony.perard@xxxxxxxxxx>, "Gross, Jurgen" <jgross@xxxxxxxx>, "Cooper, Andrew" <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Beulich, Jan" <JBeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Alexandru Isaila" <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, Pau Monné, Roger <roger.pau@xxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
  • Delivery-date: Fri, 20 May 2022 00:35:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYWkxRftUbU7b5kE+JHC0++cT1y60OvK8AgAycPYCACYL7gIACMivA
  • Thread-topic: [PATCH 3/3] x86/monitor: Add new monitor event to catch all vmexits

> From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
> Sent: Wednesday, May 18, 2022 11:02 PM
> 
> On Thu, May 12, 2022 at 9:47 AM Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
> wrote:
> >
> > On Wed, May 4, 2022 at 9:12 AM Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
> wrote:
> > >
> > > On Wed, Apr 27, 2022 at 11:51 AM Tamas K Lengyel
> > > <tamas.lengyel@xxxxxxxxx> wrote:
> > > >
> > > > Add monitor event that hooks the vmexit handler allowing for both sync
> and
> > > > async monitoring of events. With async monitoring an event is placed
> on the
> > > > monitor ring for each exit and the rest of the vmexit handler resumes
> normally.
> > > > If there are additional monitor events configured those will also place
> their
> > > > respective events on the monitor ring.
> > > >
> > > > With the sync version an event is placed on the monitor ring but the
> handler
> > > > does not get resumed, thus the sync version is only useful when the VM
> is not
> > > > expected to resume normally after the vmexit. Our use-case is primarily
> with
> > > > the sync version with VM forks where the fork gets reset after sync
> vmexit
> > > > event, thus the rest of the vmexit handler can be safely skipped. This 
> > > > is
> > > > very useful when we want to avoid Xen crashing the VM under any
> circumstance,
> > > > for example during fuzzing. Collecting all vmexit information regardless
> of
> > > > the root cause makes it easier to reason about the state of the VM on
> the
> > > > monitor side, hence we opt to receive all events, even for external
> interrupt
> > > > and NMI exits and let the monitor agent decide how to proceed.
> > > >
> > > > Signed-off-by: Tamas K Lengyel <tamas.lengyel@xxxxxxxxx>
> > > > ---
> > > > v5: wrap vmexit fields in arch.vmx structures in the public vm_event ABI
> > >
> > > Patch ping. Could a toolstack maintainer please take a look at this?
> > > The hypervisor side already has a Reviewed-by.
> >
> > Patch ping.
> 
> Patch ping.
> 

I guess what you really missed is an ack from toostack maintainer, but anyway:

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>

 


Rackspace

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