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

[PATCH 0/3] x86/hvm: add support for extended destination ID


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 20 Jan 2022 16:23:16 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=c6q8iNvYXzBZ/weoKdbnWcs68ru8NG/sGIelZyH/eWc=; b=RucK10Okiw5ID9kyS/TIfL5e+zVKWooKTbPtGeX2yVxKqDxUrkC/2IO1TtHN15CJnwXWVY69UgKMxn3eWEqQI4pNpwrrgoi6g4WijFIVcgTEoNWjwUWmkfAseg1LzWo9XiFIg/qLsNGvG0O94I14PStdvqLceCUK0s3sRo7kniutVF3pzVfEQ18ja3Y8TwPdc1JHc87DU0O9S1HGZF8WoS9tCOmtsxZdS4PoGGqtiVe5klIKP9RSPXSdIBU4wTYB6hX428j/D8MIcVZcFlSWLmDgLyvwEkaJSclyk2JEB07UNOk+j+EU/eA0Qez3JkWhEbO0VD5NYsyPhTU5aUwBeA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QY+dhkgiOciq3j4LPRHSTs+QwW8oeJsEwkWUfMmnbMZB2yEEJ8AB7JWL5g6CMygpiuWgHczaIr5qIKQ0mJrF5+VPZEbWKrmv+JRAxqkPLS0t7CK6W4MxDmweheK8y/7v3ctHujKQEEvRKxick9kvj1LpHu/oU+g0XXfM024mZwRw7MqWjNn7l24LCmBgnkLcux7eWgc/HwNobsN1Nz4cCDiSnTUCC0cEdfvMLRgcoH1vV6BdFDxqoxfdVk/MXK76zjmSzzI17ahE06DoMECzo6NDdxeqVYnEc5EERQIq4++CYxc1Xqr1JDsBSY7F9bLICpLnI632+TOyl+xyT5Eb0A==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>
  • Delivery-date: Thu, 20 Jan 2022 15:24:41 +0000
  • Ironport-data: A9a23:gImapK3+NYYK2z1mzfbD5Ux2kn2cJEfYwER7XKvMYLTBsI5bp2NSz zAWD22AO6zYYGqmeY13PYq08hgOvJ/WzNJjGgJlpC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkS5PE3oHJ9RGQ74nRLlbHILOCanAZqTNMEn9700o6wbZh2OaEvPDia++zk YKqyyHgEAfNNw5cagr4PIra9XuDFNyr0N8plgRWicJj5TcypFFMZH4rHomjLmOQf2VhNrXSq 9Avbl2O1jixEx8FUrtJm1tgG6EAaua60QOm0hK6V0U+6/TrS+NbPqsTbZIhhUlrZzqhgOxIy c5Ws76MYg4yE/PQtP4PCQZeDHQrVUFG0OevzXmXtMWSywvNcmf2wuUoB0YzVWEa0r8pWycUr 6VecW1TKEDY7w616OvTpu1EnMMsIdOtJIoCknph0SvYHbAtRpWrr6Diu4UIhWZo3J0m8fD2V ddEWDBLRgn8RD5kPFo8M8w3pMm5ryyqG9FfgA3M/vdmi4TJ9yRzzbzsPdz9atGMA8JPkS6wv Xna9m70BhUbMt23yjef9H+owOjVkkvTQIsPEJWo+/gsh0ecrkQDBRtTWValrP2Rjk+lR8kZO 0ES4jApr6U56AqsVNaVdx+yrWOA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LJyesId70hD6qkvc3Nom52j+/ xGws536faVslcssHFJo6HlBEDmewKnyXcV2/hrAV7GZmfbUQSTXedfBOfZsl/d8k7Fh5FgPM VbAtFD4bTLZDAQ56aKgzVQe+xQvOVvm5rY4ts2oU0dKD2DPMpbnnpE40ugYwRLbTgDIaB8OI uX58JBqTblUXMLbv6jDn1Ae+TYvdXEmL/vfBZDXnccmUKzpALtzIS/PwmT3x8YXT8K6bA+8V Ldmwi8wqm4qfm0xjLVymeWxZVLn9nKzMdFGaW3+4AoAwSprjztSJVqWrWEsjxwiOaz6GwymN 2JmBskN9Qb0QKkQkiF5T/WnyXw2jcn7HHvjXWCh2H4nMD/TDUmT+JcmINwaHLimgYdleA59J gO83OStpJRAx+Ftj/6/cL0WxZjkVfxiWY+kNQUk2dUXeIlGfJsRLQkjQ1o+ao7bWPHANhNKp gvMCic3ocdTbqiVQGXgoE1q+bcHUjaHX+9Mz0/U4KuonprdUtCvjolLfok7wU9HaIGOud5Dt v/Q9RVfcl1P7crhIJGdZA8qJiMexrwqSylChPgHb2gLtBDB07w
  • Ironport-sdr: mvDfvPBcy8BPkBLBnGJrGjZWpIntUhhaZRUFYv7jyPxSxhHQxLWMQQEC1+F+EbhiQx7ckuV3uX NEw6NM2rb6cDM/Mt1YDQ+BXvHvMzI43pqk3y1afTZuG/Da0HpDR/Q5wZUbbVTBwgnwlwhoVL1i yRpe2gcuYE2hzjJjbzLDbSZ1MfH4hB8x4jXvMjUFBUP06KIRMsNPs9DFxy9Wh0T93e1hR1BQrw cgqIqOLhhUUYJVI+cqFtl5tm342ZgKiKFylzLGcIaMVZhKBKlH0CdW5PUBVXPY5LaVD5n9orml Omyx/6/MH0YrACfVcknVTQ9D
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

The follow patch series is a very initial implementation of the extended
destination ID for vIO-APIC and vMSI for HVM/PVH guests. This is already
supported by QEMU/KVM and HyperV in order to target APIC IDs for
device interrupts up to 32768 without the need of interrupt remapping.

Note the feature is only exposed to guests with vPCI at the moment (see
patch 2 for the details). In practice this means it's only exposed to a
PVH dom0, and the maximum vCPU count for HVM/PVH is still not increased,
as that would also require some changes to QEMU and the ACPI tables for
domUs (both HVM and PVH).

Thanks, Roger.

Roger Pau Monne (3):
  xen/vioapic: add support for the extended destination ID field
  x86/vmsi: add support for extended destination ID in address field
  HACK: allow adding an offset to the x2APIC ID

 xen/arch/x86/cpuid.c                   | 12 +++++++++++-
 xen/arch/x86/hvm/dom0_build.c          |  3 ++-
 xen/arch/x86/hvm/irq.c                 |  3 ++-
 xen/arch/x86/hvm/vioapic.c             |  3 ++-
 xen/arch/x86/hvm/vlapic.c              | 14 ++++++++++++--
 xen/arch/x86/hvm/vmsi.c                | 13 ++++++++++---
 xen/arch/x86/include/asm/hvm/hvm.h     |  5 +++--
 xen/arch/x86/include/asm/hvm/vlapic.h  |  2 ++
 xen/arch/x86/include/asm/msi.h         |  1 +
 xen/arch/x86/traps.c                   |  3 +++
 xen/drivers/passthrough/x86/hvm.c      | 10 +++++++---
 xen/include/public/arch-x86/cpuid.h    |  6 ++++++
 xen/include/public/arch-x86/hvm/save.h |  4 +++-
 xen/include/public/domctl.h            |  1 +
 14 files changed, 65 insertions(+), 15 deletions(-)

-- 
2.34.1




 


Rackspace

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