[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 07/11] xen/domctl: Introduce XEN_DOMCTL_CDF_vpci flag
- To: Michal Orzel <michal.orzel@xxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Wed, 13 Oct 2021 10:30:33 +0200
- 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=4d7SnycqOTjWlfVwndMpJ36JESroADFh+e51ulQjF4M=; b=bIWlth3fm0ncxiQTA8KgYmA2Qtl6NLuMgoESUKWWpn+80CiKV3P8h1anlfQsweFbUORns7+DCti1ya8hvKE/ndOQ1GUjS4Ft6oyL1/NNcRrTkg98XAmHa0IC/28FP4UuC/395P33MfCgIfpEBgSsL6xhhI1HQAdtnBlc73ms4shqJc0j1d+A1fTkNMC2IDzYuP58o1uyHC41PzPjequqWKrObMLveOEk0TGBY5lQSN7Qj8XdhgT0ClgCKtw4OgtyyP/MKJiPyn3WKLv6MYf1PGcBdRz+e87OMZKNIwx8SWl2cFLVDO7fj09jHugSlbWFWHATbZIeEf71jQN7TDix6g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CyVdUYGZUnZv+gz3b8K6CEPVnNKR0eQp8B0qavRAn1B5OIiMfvSgN6LG40wRepakhV48XvGq2VCXe/ipc9hGBSbzS51hjkocrlBzIQs8oZWopQkSxKiHtysq79aYdR5hAIL6yCX8ForabLo4UmT3SltCI6f+DR65zpFnk3G4fhTsFXbWHXL9fxHTBcZI+pg6UFUGgRSpInpaLOrpfNu+CRQE21Dd8+ttqaw3w6Sb1SwQNduk5fKw4TsvNuhUWpXc1U2qsz37Uit3a97C4GmIJYANN3q5tsl6ALUutT+nmeC9OaWoN656VYAvFcNZNweRwkdacOoUsxHPAezJVkoMXA==
- Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Rahul Singh <rahul.singh@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <bertrand.marquis@xxxxxxx>, <Andre.Przywara@xxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Wed, 13 Oct 2021 08:31:06 +0000
- Ironport-data: A9a23:AY/fe6JYaNp3NUOcFE+R8JMlxSXFcZb7ZxGr2PjKsXjdYENS3zUGz WIbDTzQPK6PYjH8L98lb4zjpEpQuZbUm4AyGQtlqX01Q3x08seUXt7xwmUcns+xwm8vaGo9s q3yv/GZdJhcokcxIn5BC5C5xZVG/fjgqoHUVaiUZ0ideSc+EH140Eo6wLZg6mJVqYPR7z2l6 IuaT/L3YDdJ6xYsWo7Dw/vewP/HlK2aVAIw5jTSV9gS1LPtvyB94KYkDbOwNxPFrrx8RYZWc QphIIaRpQs19z91Yj+sfy2SnkciGtY+NiDW4pZatjTLbrGvaUXe345iXMfwZ3u7hB2KhMt34 fZSnqWJUF90MfHFs+BHWhlHRnQW0a1uoNcrIFC6uM2XiUbHb2Ht07NlC0Re0Y8wo7gtRzsUr LpBdW5LPkvra+GemdpXTsF2gcsuNo/zNZ43sX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5waIZrGee4eVPF H8EnB9p2A+K7fhlOWplcI0ATcLMiTtswN7TrmtZmn0VcG8fUVW5/FTwL9BGw1DHcAKeU1ASMPf AkNV+rmgdnqsmF5Tz8HlW1+nTQrroK+cCkHeKNvk/NvhkXi1a6SASkjqMeBRvJ1/Jqf3wqK/Mg 9ddebB/ScO6A4oIz+3cB3RyMUKxWR3VjNQJPuviW+/DG6BVF3jQbvEfnAoj6UDjbWGoGAu0ohO DXHu+zVUUGDawWPd6Wt3Qas3
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Oct 12, 2021 at 12:38:35PM +0200, Michal Orzel wrote:
> Hi Roger,
>
> On 11.10.2021 11:27, Roger Pau Monné wrote:
> > On Wed, Oct 06, 2021 at 06:40:33PM +0100, Rahul Singh wrote:
> >> Introduce XEN_DOMCTL_CDF_vpci flag to enable VPCI support in XEN.
> >> Reject the use of this new flag for x86 as VPCI is not supported for
> >> DOMU guests for x86.
> >
> > I don't like this approach, XEN_DOMCTL_CDF_vpci should be set for x86
> > PVH dom0, like we do for any other CDF flags when Xen builds dom0.
> >
> > Things like PVH vs PV get translated into CDF flags by create_dom0,
> > and processed normally by the sanitise_domain_config logic, vPCI
> > should be handled that way.
> >
> > Do you think you could see about fixing this?
> >
> > Thanks, Roger.
> >
>
> I have one question about this fix.
> If I set XEN_DOMCTL_CDF_vpci for dom0 pvh in create_dom0, then in
> sanitise_domain_config or arch_sanitise_domain_config I have no
> knowledge on whether I am dom0 or not. I can check if I'm PVH but not if dom0.
> This would be needed to add a warning if this flag is set but we are not dom0
> pvh.
>
> Any ideas?
I've just realized this is more wrong that I thought. vPCI is
signaled on x86 in xen_arch_domainconfig.emulation_flags, so
introducing a top level option for it without removing the arch
specific one is wrong, as then on x86 we have a duplicated option.
Then I'm also not sure whether we want to move it from
emulation_flags, it seems like the more natural place for it to live
on x86.
If we really want to make vPCI a CDF option we must deal with the
removal of XEN_X86_EMU_VPCI, or else you could introduce an arch
specific flag for vPCI on Arm.
Thanks, Roger.
|