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

Re: [PATCH v10 2/2] x86/xen: Allow per-domain usage of hardware virtualized APIC


  • To: Jane Malalane <Jane.Malalane@xxxxxxxxxx>
  • From: George Dunlap <George.Dunlap@xxxxxxxxxx>
  • Date: Thu, 7 Jul 2022 15:04:29 +0000
  • Accept-language: en-US
  • 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=tpzsmyGCfuLEOqB+1/PeJIU7gP6YhSpxhE8g7RsWB/I=; b=BI329931FSImV/cxx1ZJe+77qq10LwsAVmIQvo22qm5NN1S5ldDi3Q7HPvDyvbUrmItDewlf9C9s28EQ9sRdwgRp3Uordh9W/vqtjMzULi+M3VUUQf60YoiRyN5v5XQRW4AJVSmJ5IrT1Z3vij4UPCTpzEvdnKe1/QVM7YDq9eKHdW1feHb45JAyl0oCti/ioeanZXkBJbKIijXV0mn95w5gTbvXSYekKc5F56nzCLtUaRccK8BdXNk0zmiGq6kEz81g5FGUfmn5jAuqIDduFXcdznWTzGUNFaYfke2pjTxk2kzEenJzZFklaherewHKx0kcyufWUlfwCF56rnN7vg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TooWe6PZfWpB7VYMeftQtIdCmhOwhsIDqnghgafDnS8KNY4fZFzgVIwIPk2ZstU7W6uumKZlZKNxKTPK+ZtaTqpbI8KLylFatTQonyI0mXzKK30O29WeYKNSwWVQTypFQd3iyTDK3aZU7FF8eLGtQWQj5hyUyTMx6wBqk65HRrNlCI/tUlbOW2Cx6DX0aAK2pV23urHpwxbNDC5K1qaQE/+QKvjR6mgqShwmyAZ9v4366yrtZCrvEj0lBaNEC/Ea4TIU7tHf7IRysOC8N9opQHYdfpD9rnKVF9ijTk/oaSp0QmFt2uArrNW/0eD0uB6kMMpNgsW1oZKrN12gkuS8Sw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 07 Jul 2022 15:04:38 +0000
  • Ironport-data: A9a23:FVj5w6I62/MJ/JiOFE+RnpUlxSXFcZb7ZxGr2PjLsTEM7AuW5UVEl zVBCC3DeKqUMyGmS21FGN638k8AusDdydVmHgVq+Sw2Fi5G85XPXYXHcxz+NXPIdZLIF0k4t poUYdSRfJ49QC+C/EagPuexoSBxj/nUF7OU5IIoQsxUbVYMpHAJ1UIz8wJAvrNVvDSZP++sk Y6q8sGPaAT6hDV/bGtItvPZ9Ulj46yj5DoT4wxhOqkU7QPSz3UbMskSdPq7R5farii4PQIYq 8LrluzRErbxpk91Yj+duu+nNBVMGNY+BCDW4pZsc/HKbiNq+2pjiM7XCNJGMR0N02rRwIgro DlwncfYpTkBb/WkdNs1C3G0IwkmVUGR0OaaSZQXmZX7I3zuKxMA8d03ZK0FFdRwFtJMKXNP7 ZQlxAUlNXhvsQ4ULIWTEYGAjux7RCXi0Rh2VntIlVk1Bt5+KXzPrjmjCXa1E17ci+gXdcsya fb1ZhJkRiX5RhseNm4rAY01keOv3FemaixH/Qf9SaofuwA/zSRX+Z21ap/5X4fPQs9Y2EGFu mjB4mL1RAkAM8CSwiaE9XTqgfLTmST8W8QZE7jQGvxC2QXPgDBMTkBIEwfiyRW6ohfWt9Z3B EET4CUj64Qv8kiiVvH2XgGioW7CtRkZMzZVO7JnslDXm/KMi+qfLnYrRBprK/oMjekNRWd26 VrKgIzYAgU65dV5TlrYrN94twiaKSUTaGMPeyIAZQ8E+MX45pE+iArVSdRuG7Lzicf6cRnvx xiaoS54gK8c5eYJ2L+85kvvmC+3q97CSQtdzgfdU3+h7wh5TJW4fIHu4l/ehd5CMYKYQ1+pr HUC3c+E44gmFoqRnSaAROEMGrCB5PufNjDYx1l1EPEJ+z2z9la5cItX4TU4I11mWu46fjvub F7WqBlmzpZZN3u3bod6e4u0Tc8tyMDd+c/NU/nVap9CZ8N3fQrfpiV2PxbMhibqjVQmlrw5N dGDa8GwAH0GCKNhij2rW+Ma1rxtzSc7rY/Oea3GI92c+eL2TBaopX0tazNisshRAHu4nTjo
  • Ironport-hdrordr: A9a23:I31zy61hlb7HOcUSxVAmAAqjBLAkLtp133Aq2lEZdPSdGvbo8P xG+85rsSMc6QxhPU3I9urqBEDtexnhHL9OgbX5Xo3CYOCFggWVxehZhOPfKlvbdBEWndQx6U 4PScRD4aXLfDpHZL3BkWqFL+o=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYTyjMyYwCRaSEX02AKbyBHUjKJq1zh2MA
  • Thread-topic: [PATCH v10 2/2] x86/xen: Allow per-domain usage of hardware virtualized APIC



On 13 Apr 2022, at 12:21, Jane Malalane <Jane.Malalane@xxxxxxxxxx> wrote:

Introduce a new per-domain creation x86 specific flag to
select whether hardware assisted virtualization should be used for
x{2}APIC.

A per-domain option is added to xl in order to select the usage of
x{2}APIC hardware assisted virtualization, as well as a global
configuration option.

Having all APIC interaction exit to Xen for emulation is slow and can
induce much overhead. Hardware can speed up x{2}APIC by decoding the
APIC access and providing a VM exit with a more specific exit reason
than a regular EPT fault or by altogether avoiding a VM exit.

On the other hand, being able to disable x{2}APIC hardware assisted
virtualization can be useful for testing and debugging purposes.

Note:

- vmx_install_vlapic_mapping doesn't require modifications regardless
of whether the guest has "Virtualize APIC accesses" enabled or not,
i.e., setting the APIC_ACCESS_ADDR VMCS field is fine so long as
virtualize_apic_accesses is supported by the CPU.

- Both per-domain and global assisted_x{2}apic options are not part of
the migration stream, unless explicitly set in the respective
configuration files. Default settings of assisted_x{2}apic done
internally by the toolstack, based on host capabilities at create
time, are not migrated.

Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Jane Malalane <jane.malalane@xxxxxxxxxx>
Reviewed-by: "Roger Pau Monné" <roger.pau@xxxxxxxxxx>

Golang bits:

Reviewed-by: George Dunlap <george.dunlap@xxxxxxxxxx>


Attachment: signature.asc
Description: Message signed with OpenPGP


 


Rackspace

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