[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QEMU PATCH v8] xen/passthrough: use gsi to map pirq when dom0 is PVH
- To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
- From: "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
- Date: Wed, 23 Oct 2024 09:30:54 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0cluu/nLc+2Z26A8o9jU16qPh/Y22bsI0a5pU+pOdNc=; b=RUbAzoQe+yumdN54CkGWjG192gGy8rYjMOx1NPyStT/yxZgaJbOIZnUjc0SjSQ1MWM2WvEeYLdk/ti2R1aJ2pu361QtSxJPvl28sYWubb0qRx3KmUMpuR/dJ9LzxVkDWL2Ab2cELEQ83fF62l8SoadtFDrYRBAkcs2/iwbAGGX2nMHdYFth0HmDhRlxCkuENse6yfPw7Xg8btpZx+QhSoGrcEhPooDSh1bPXMawsfzy+wjsuU11QCQNjZQKWtQu5+yOZYaXpPKDMEIhcozL559UQRUcRr6HJHBCeOffJR5uIBEMaTPFMs75c5hq8F01Ephf9cmlYzF/Yf93gvx8FKQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H5IzTFHsa3lkgH5kY4vR+e8Lpnjn31n6CB9zTxQYl8KoeG53Rgct6QjAD7pHtTtYa8Y/aCemQcQzXhae24iUVKuwt8vZHQ1wEgfpZ88ih3Yv3r9JQt/IgQ9psvT2RcWtsb/lG/fYZ90yJqRGqAKHEWCND3Peb7hPwlrMbe3sEg5K3499zaD/CQNVL1dvet4Gyz9adaGJ6FSZljU4sDMD/fhEIbRTfEVuSMLYaj2IaRQup+no6JC485fZUiImBuiprLd1ri8h0uNJlJCuVvDzWEsS4vJWIeBlEYkQ3WGa3Q7OlkxgCAieBqA08Imzj5OEcVgFKlNiZw7CtauMExyMWg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony@xxxxxxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, "Edgar E . Iglesias" <edgar.iglesias@xxxxxxxxx>, "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Huang, Ray" <Ray.Huang@xxxxxxx>, "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
- Delivery-date: Wed, 23 Oct 2024 09:31:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHbH5SoA03nzCynnUmi2VFVuzae7rKTb04AgAEz3YA=
- Thread-topic: [QEMU PATCH v8] xen/passthrough: use gsi to map pirq when dom0 is PVH
On 2024/10/23 07:07, Marek Marczykowski-Górecki wrote:
> On Wed, Oct 16, 2024 at 02:28:27PM +0800, Jiqian Chen wrote:
>> --- a/hw/xen/xen_pt.h
>> +++ b/hw/xen/xen_pt.h
>> @@ -36,6 +36,7 @@ void xen_pt_log(const PCIDevice *d, const char *f, ...)
>> G_GNUC_PRINTF(2, 3);
>> # define XEN_PT_LOG_CONFIG(d, addr, val, len)
>> #endif
>>
>> +#define DOMID_RUN_QEMU 0
>
> Please, don't hardcode dom0 here, QEMU can be running in a stubdomain
> too (in which case, this will hilariously explode, as it will check what
> dom0 is, instead of where QEMU is running).
> Stewart already provided an alternative.
Got it, will use Stewart's suggestion, thanks.
>
--
Best regards,
Jiqian Chen.
|