[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 RFC 4/5] x86/ioreq: report extended destination ID support by emulators
- To: <paul@xxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Wed, 16 Feb 2022 12:32:31 +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=au0BypD7hjMkW1NmsRUpn0eJuS8LJaAXl1P290c0w80=; b=l0+DkPDkteoRNvY4jA5Vy+04X/bK5SoMN980AzwsCIZVuA6XduQrbVQATrZzWdOLO4Q/ex+MjeZE+nzVNYKi3MZ8slbpS7OM6dn9MsGR3ygItcQFdSkvnqwRustwtCsjIc8QwPpaYi/zS4O0ioZiVsmMwxoW2zH4Ub4QBbz90wnkpxXzJ3d9JVfHooOQun9K5nVXiT4Jpbb3tHDQGq/ruSOR13fHdZXUZx3+xUaqCfGmbf6Uf+FoVk0KGGpWcWlkGUDb2CTeSuAfShzr6ekvpfWKqzOry0H5PT9Ho8erW3rr4TvPc6DpHSRruqLL2l0fX2jUCvBdsyyPrlEYgG3Hqw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eScfiVuDSnaF6FajSjj6RE7Xfjbbpqy8rFIM4ekW7niFXMXmi8TcuGpzBCzGpQodPT5bLXHk4VcWMkAat/vSBh/PyTZ6ZWk/Y5JeDEGEArcQa4YZ2E5B893tqyb1AX95SDgy8e5+zuYTW4Nrh6IfJlstrB/hn5RjaNcpDMokVzwZlednjuckzqozOPgYnyMix3pIEfkHV3YHWMHadSGYgt4kfwy3/gBiiSmHdxECpIm4a+S5i/x5v41lfMlhwr1IQdsBsKftXrdXYFoyS73mbZ6kGbVQepORqFnSCVRNMe0C8gNJkabHJzi/V3w5+Lp90U9t1cxRTVWEhZV/b+QK8Q==
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <dwmw2@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Wed, 16 Feb 2022 11:32:56 +0000
- Ironport-data: A9a23:WT2fI66dIr6yXeII46i6jAxRtGfBchMFZxGqfqrLsTDasY5as4F+v mUYWmGAOfuMMWPxKdgiPISy9ksCu8DVy9VqQVc5qCk0Hi5G8cbLO4+Ufxz6V8+wwmwvb67FA +E2MISowBUcFyeEzvuV3zyIQUBUjclkfJKlYAL/En03FV8MpBsJ00o5wbZj29Aw2LBVPivW0 T/Mi5yHULOa82Yc3lI8s8pvfzs24ZweEBtB1rAPTagjUG32zhH5P7pGTU2FFFPqQ5E8IwKPb 72rIIdVXI/u10xF5tuNyt4Xe6CRK1LYFVDmZnF+A8BOjvXez8CbP2lS2Pc0MC9qZzu1c99Zw oRQ6aPrECQSLIrCsr4GX15pIQN+FPgTkFPHCSDXXc27ykTHdz3nwul0DVFwNoodkgp1KTgQr 7pCcmlLN03dwbLtqF64YrAEasALNs7kMZlZonh95TrYEewnUdbIRKCiCdpwgmxv2ZoSTKe2i 8wxVSFKawT8aj92GGhIDpEstb+SmmTxfGgNwL6SjfVuuDWCpOBr65DTN97Sds2PVN9itE+Sr WLb/Ez0GhgfcteYzFKt+H+2mvXGmy+9X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e2Ea5Yzx
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Feb 16, 2022 at 10:53:58AM +0000, Durrant, Paul wrote:
> On 16/02/2022 10:30, Roger Pau Monne wrote:
> > Introduce a new arch specific field to report whether an emulator
> > supports the Extended Destination ID field, so that the hypervisor can
> > refrain from exposing the feature if one of the emulators doesn't
> > support it.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> > ---
> > Changes since v1:
> > - New in this version.
> > ---
> > RFC: I find this kind of clumsy. In fact fully emulated devices
> > should already support Extended Destination ID without any
> > modifications, because XEN_DMOP_inject_msi gets passed the address and
> > data fields, so the hypervisor extracts the extended destination ID
> > from there.
> >
> > PCI passthrough devices however use xc_domain_update_msi_irq and that
> > has leaked the gflags parameter in the API, even worse the position
> > of the flags are hardcoded in QEMU.
> >
> > Should the clearing of ext_dest_id be limited to the domain using an
> > IOMMU?
> >
> > RFC: Only enable ext_dest_id if max_cpu > 128? So the device model is
> > aware the domain must use ext_dest_id? (implies device model knows
> > APIC ID = CPU ID * 2)
>
> There is still only a single sync ioreq server page, so 128 vCPUs is the max
> possible.
Right - so device models wanting to support > 128 vCPUs will already
need to be modified, and hence we could assume that any HVM guests
with > 128 vCPUs is using a device model capable of handling extended
destination ID?
Thanks, Roger.
|