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

RE: [PATCH v4 1/3] x86/vmx: implement VMExit based guest Bus Lock detection


  • To: Pau Monné, Roger <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Wed, 14 Dec 2022 06:09:08 +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=sgrmIp58KvDHrKx/yXY/JLBzxh5dZF+tSmaoMZ7DzeY=; b=F6mnpbPMlq8WGM+WHWbzUUZB0/aoib6WaZMGTdChHxM9sTv4XSAeuLtuW5hwVfuHqlFVGTA+NBJpqW6iESYl7X29mCxknSPn7o3/8bHC/7K1gs1Q9bZiivqF/rmGjp+R14lwj34oPz4QYPIoItv/ZeCWdhs7weaxJcP2/Xb92tN79QR2pokzm0CchJ6J12SNlq7HfL7LnLsQPJv3IPQnNv4Nz8Y8IxueuxmUbyb18OhLcPMW2pz+z9TIBh/DnE2YDVDvyvE9JKXWFkHMIJMOsbgcIznKGtHSwnem7pPrJdnk0AJlhy8KHYtu5BuAUKF154Vo/bffVgu+uv0armYbEg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gc3LEZueRkYVgrdcQWCughFaox+8pDnlG/iJk/Mn9tbCsY726oZYqtIN43lqFmfBUE7ie5TPc3ms6+1HSchzgaRVRWFZPlkzNUm7IGziVEFy75nW5dH9B3onE9yOyy6SY3d3isc42vQwX3cjvRxCq4f0OPgYlDttit94+MzTyRA4ZIvRP/ouI/mpQ1rmhPzfDFtmOGB1fALIZ8OXETT3mwKkqPVaoiegMXraa8hEWHmd/SlMTfzBsTE3wgtwJYeT4YyguP3KtYvLsqlMf08GmxelurF+YeRID87s+4RsdZRNsBrDJ8lw7LnTsT/Hgp3F4uQYiL2Zf5zrSjX3+7K+4g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com;
  • Cc: Pau Monné, Roger <roger.pau@xxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, "Beulich, Jan" <JBeulich@xxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 14 Dec 2022 06:10:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHZDxCBORosQTsnbEKGSZV8tCFS9K5s5s7w
  • Thread-topic: [PATCH v4 1/3] x86/vmx: implement VMExit based guest Bus Lock detection

> From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
> Sent: Wednesday, December 14, 2022 12:31 AM
> 
> Add support for enabling guest Bus Lock Detection on Intel systems.
> Such detection works by triggering a vmexit, which ought to be enough
> of a pause to prevent a guest from abusing of the Bus Lock.
> 
> Add an extra Xen perf counter to track the number of Bus Locks detected.
> This is done because Bus Locks can also be reported by setting the bit
> 26 in the exit reason field, so also account for those.
> 
> Note EXIT_REASON_BUS_LOCK VMExits will always have bit 26 set in
> exit_reason, and hence the performance counter doesn't need to be
> increased for EXIT_REASON_BUS_LOCK handling.
> 
> Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

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®.