[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: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Lengyel, Tamas" <tamas.lengyel@xxxxxxxxx>
  • Date: Fri, 20 May 2022 14:05:30 +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=JGqMiaNCtiKWopGTCzc8G1mAq76OUlPHlMgwCadM3C0=; b=f67OhvpnqQTdJ1w06GsXtvgQUxFr9fcX3wnleJEUHM0lP5ilh66S+usM51nALr89TKUEFZELpRTmkwUriTL2NOj6Q0yv4x8Yt8PGTgVG9P1BNTITDmzAEjKzuNzEvuRnMOpIVeiZiC5B4+XLXmG2xYRquNeq7H4Oc+kpuFFu7OmSt8Vtf3byW3ipy2Ociz+4RF9i+ysAnQtGZoEqbjN3GAm+xsBFqU8UK7F+ecrpWSiW60+4Jn09780VoKlc3uyEknH/9pwvP7wPSCbLFwjwsLBp4+76YmfFABwARnhXBAnbGN5Q0t88xoJmL1lmVdU1gSwoovRnbmvmZuWAIl5GIA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BWANSao1HXiE5wM2tJ7JujF3L+RLMOYLjd88STtVePfR1YEinISYZyTGYbF2ODlpoQzix39ITfDAGnOP2ahjqA1tyCztM4TgQAqXAVJua3TxvRx7Tnxtqv0KUVlgGjJhbCe3IdXsC+y6Vkj8uBZahhxDW51Y/jx6L7KHbcPTNorEQR1n3/UG8xZmcunX8vuVrxIOztPqtreTHRecigVNYGHuU6coCgQaaVpSHIbHyuwfBGEIpon+UT2n0Rmuc5m2BHJ/q+2MslL0ZQuWpEN/ZZBfm827xkbf2CbPSZXX6idwrdORmFB6+9utMBPriZdUgwW8moaY2lyXnDraULQxwQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com;
  • Cc: 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 14:05:48 +0000
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.6.401.20
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYWkxRLPl0PMiFWESicSOc/TYisq0OvK8AgAycPYCACYL7gIACMmIAgADiI1A=
  • Thread-topic: [PATCH 3/3] x86/monitor: Add new monitor event to catch all vmexits


> -----Original Message-----
> From: Tian, Kevin <kevin.tian@xxxxxxxxx>
> Sent: Thursday, May 19, 2022 8:35 PM
> To: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> 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>
> Subject: RE: [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>

Thanks, the review is still appreciated!
Tamas

 


Rackspace

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