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

[PATCH for-4.17 v3 0/2] amd/virt_ssbd: refactoring and fixes


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 3 Nov 2022 18:02:42 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=EIU2lRGYZkbDmSI0A87U+VhmPegTQ3g81V0phGsulak=; b=mr8xqgDHKwtV1wBS9S8J+RSmbsIrriKZRGbsIP2rWSC2sHDJcZIWeWPDCA+8eKO1kvYGkckG6wPR3035wLVZ3PxccgAoA56sy7CCxdIM+R9c/nTFeN1w6lBTCzQvMaWJSE/pEuV8Qh6amN61Z6rqxZyToztnEiAw/LMVkqFINUy7jUwSC3hjP+SCwGKg22lGx4fnGkcogyqjjOIDZl8EnEQaIyp7KCAEByXwNLIP2U++s1laysMV+oiO3+wDSo3ukna+oXfH4tO1TirBnZHvwh16Mmt13wcwJlgK+/Y0nig38hc4sTPsY0ATei24WE/3U7PhVwh10dn49eKHshZM+A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZHMkGdB4I2y1XxP8fEM/yZEh0bnewL1co7Ao7zjGJG0XVGYj29/XgNVXYLtJZ8b7O8XWwfzMm/A+UHR01p5OIeiHiWwPdggNmoEIkCxbrVLtbHnUEds5xBadWNrQL0bjrh5IhRc/7wl0uhjJbe+zDnrdPlcwmKVvJcnYHlS4Sje9ILtcUTmCwufJS1AEkb2SdbRcZ6uha+dKJQlr9ybF5Ivn4JF3+XowlWcT9qu3YjHLzGQJDjXq4jrV1qKrv8T7d7AIOsQx6LLMYqp6ZkjFv5YviicXoap85i5faQ0MSzLdS/igic+sNT82qfyLCs/XLJon/hqZpe9vdnZuybNU8w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Henry.Wang@xxxxxxx, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 03 Nov 2022 17:03:13 +0000
  • Ironport-data: A9a23:wKrhJqkX1VKOEcqUQ+w3cHjo5gxaJ0RdPkR7XQ2eYbSJt1+Wr1Gzt xJLDWyDb6mJYzHzeNxxb4uz90kDuJHXydFqHAZq/CA2ECMWpZLJC+rCIxarNUt+DCFhoGFPt JxCN4aafKjYaleG+39B55C49SEUOZmgH+a6U6icf3grHmeIcQ954Tp7gek1n4V0ttawBgKJq LvartbWfVSowFaYCEpNg064gE4p7aqaVA8w5ARkP6kS5ASGzRH5MbpETU2PByqgKmVrNrbSq 9brlNmR4m7f9hExPdKp+p6TnpoiG+O60aCm0xK6aoD66vRwjnVaPpUTbZLwXXx/mTSR9+2d/ f0W3XCGpaXFCYWX8AgVe0Ew/yiTpsSq8pefSZS0mZT7I0Er7xIAahihZa07FdRwxwp5PY1B3 e0YBWtXdxadveaVwZHhYbBrr5UbPNa+aevzulk4pd3YJdAPZMmZBo/stZpf1jp2gd1SF/HDY cZfcSBocBnLfxxIPBEQFY46m+CrwHL4dlW0qnrM/fZxvzeVkVE3iea9WDbWUoXiqcF9hEGXq 3iA523kKhobKMae2XyO9XfEaurnzX+iA9xKTOfQGvhCoH6252FMLx4sZ3T8iKjokESFaoNVA hlBksYphe1onKCxdfHtUhv9rHOasxo0X9tLD/Z8+AyL0rDT4QuSGi4DVDEpQPwrstUnAwMj0 FChlsnsQzdotdW9S3iQ67OVpjOaIjUOICkJYipsZQkY59jupqkjgxSJScxseIaulcH8Ezz0x zGMrQA9iq8VgMpN0L+0lXjYhxq8q56PSRQ6jjg7RUqg5wJ9IYSjN4qh7AGB6e4addjJCF6co HIDhs6SqvgUCo2AnzCMR+NLG6y14/GCM3vXhlsH84QdyglBMkWLJeh4iAyS7m8zWirYUVcFu HPuhD4=
  • Ironport-hdrordr: A9a23:+useRqOZxXFWWMBcTy7155DYdb4zR+YMi2TDiHoddfUFSKalfp 6V98jztSWatN/eYgBDpTnmAtj5fZq8z+8N3WB1B9uftWbdyQ+Vxe1ZjbcKoAeQZhEWiNQtsp uIGpIWYLOQMbETt7eB3ODSKadE/DDoytHKuQ+IpE0dNj2CJpsQmztRO0K+KAlbVQNGDZ02GN 614ddGnSOpfTAyYt6gDncIcuDfr5mT/aiWFyIuNloC0k2jnDmo4Ln1H1yx2QofaSpGxfMH/X LemwL0y62/u7WQywPa1UXU85NK8eGRvedrNYipsIw4Oz/sggGnaMBIXKCDhik8pKWV5FMjgL D30mQdFvU2z0mUUnC+oBPr1QWl+i0p8WXexViRhmamidDlRRohYvAxz75xQ1/80Q4Nrdt82K VE0yayrJxMFy7Nmyz7+pzhSwxqrEypunAv+NRjxEC3abFuJIO5kLZvs3+8SPw7bWzHAcEcYa FT5fjnlbtrmQjwVQGZgoFtqObcLkjbUC32AnTqgfblrQS+rEoJs3fw+/Zv4UvojKhNLaWsx9 60QJiAx4s+O/M+XOZaONorZ/eRJyjkfS/sWVjiUGgPUpt3ck7wlw==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

Just two patches remaining, and the last one is already Acked.

First patch deals with moving the switching of SSBD from guest
vm{entry,exit} to vCPU context switch, and lets Xen run with the guest
SSBD selection under some circumstances by default.

Thanks, Roger.

Roger Pau Monne (2):
  amd/virt_ssbd: set SSBD at vCPU context switch
  amd: remove VIRT_SC_MSR_HVM synthetic feature

 docs/misc/xen-command-line.pandoc      | 10 +++--
 xen/arch/x86/cpu/amd.c                 | 56 ++++++++++++++------------
 xen/arch/x86/cpuid.c                   |  9 +++--
 xen/arch/x86/hvm/svm/entry.S           |  6 ---
 xen/arch/x86/hvm/svm/svm.c             | 45 ++++++++-------------
 xen/arch/x86/include/asm/amd.h         |  3 +-
 xen/arch/x86/include/asm/cpufeatures.h |  2 +-
 xen/arch/x86/msr.c                     |  9 +++++
 xen/arch/x86/spec_ctrl.c               |  8 ++--
 9 files changed, 75 insertions(+), 73 deletions(-)

-- 
2.37.3




 


Rackspace

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