[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/5] hyperv/IOMMU: Enable swiotlb bounce buffer for Isolation VM
- To: Borislav Petkov <bp@xxxxxxxxx>
- From: Tianyu Lan <ltykernel@xxxxxxxxx>
- Date: Wed, 17 Nov 2021 21:22:27 +0800
- Cc: dave.hansen@xxxxxxxxxxxxxxx, luto@xxxxxxxxxx, peterz@xxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, x86@xxxxxxxxxx, hpa@xxxxxxxxx, jgross@xxxxxxxx, sstabellini@xxxxxxxxxx, boris.ostrovsky@xxxxxxxxxx, kys@xxxxxxxxxxxxx, haiyangz@xxxxxxxxxxxxx, sthemmin@xxxxxxxxxxxxx, wei.liu@xxxxxxxxxx, decui@xxxxxxxxxxxxx, joro@xxxxxxxxxx, will@xxxxxxxxxx, davem@xxxxxxxxxxxxx, kuba@xxxxxxxxxx, jejb@xxxxxxxxxxxxx, martin.petersen@xxxxxxxxxx, hch@xxxxxx, m.szyprowski@xxxxxxxxxxx, robin.murphy@xxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, michael.h.kelley@xxxxxxxxxxxxx, Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx>, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-hyperv@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, vkuznets@xxxxxxxxxx, brijesh.singh@xxxxxxx, konrad.wilk@xxxxxxxxxx, parri.andrea@xxxxxxxxx, thomas.lendacky@xxxxxxx, dave.hansen@xxxxxxxxx
- Delivery-date: Wed, 17 Nov 2021 13:22:57 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 11/17/2021 3:12 AM, Borislav Petkov wrote:
What you should do, instead, is add an isol. VM specific
hv_cc_platform_has() just like amd_cc_platform_has() and handle
the cc_attrs there for your platform, like return false for
CC_ATTR_GUEST_MEM_ENCRYPT and then you won't need to add that hv_* thing
everywhere.
And then fix it up in __set_memory_enc_dec() too.
Yes, agree. Will add hv cc_attrs and check via cc_platform_has().
|