Re: [PATCH 1/3] x86/mtrr: remove stale function prototype

2021-05-30 Thread Jan Beulich
On 28.05.2021 19:39, Roger Pau Monne wrote: > Fixes: 1c84d04673 ('VMX: remove the problematic set_uc_mode logic') > Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich

Re: Invalid _Static_assert expanded from HASH_CALLBACKS_CHECK

2021-05-30 Thread Jan Beulich
On 28.05.2021 17:44, Tim Deegan wrote: > Hi, > > At 10:58 +0200 on 25 May (1621940330), Jan Beulich wrote: >> On 24.05.2021 06:29, Roberto Bagnara wrote: >>> I stumbled upon parsing errors due to invalid uses of >>> _Static_assert expanded from HASH_CALLBACKS_CHECK where >>> the tested expression

Re: [RFC PATCH V3 03/11] x86/Hyper-V: Add new hvcall guest address host visibility support

2021-05-30 Thread Tianyu Lan
Hi Borislav: Thanks for your review. On 5/31/2021 2:25 AM, Borislav Petkov wrote: On Sun, May 30, 2021 at 11:06:20AM -0400, Tianyu Lan wrote: diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 156cd235659f..a82975600107 100644 --- a/arch/x86/mm/pat/set_memory

[qemu-mainline test] 162267: regressions - FAIL

2021-05-30 Thread osstest service owner
flight 162267 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/162267/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-freebsd11-amd64 16 guest-saverestore fail REGR. vs. 152631 test-amd64-am

[linux-linus test] 162266: regressions - FAIL

2021-05-30 Thread osstest service owner
flight 162266 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/162266/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-dmrestrict-amd64-dmrestrict 7 xen-install fail REGR. vs. 152332 test-amd

[qemu-mainline test] 162264: regressions - FAIL

2021-05-30 Thread osstest service owner
flight 162264 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/162264/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-freebsd11-amd64 16 guest-saverestore fail REGR. vs. 152631 test-amd64-am

Re: [RFC PATCH V3 03/11] x86/Hyper-V: Add new hvcall guest address host visibility support

2021-05-30 Thread Borislav Petkov
On Sun, May 30, 2021 at 11:06:20AM -0400, Tianyu Lan wrote: > diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c > index 156cd235659f..a82975600107 100644 > --- a/arch/x86/mm/pat/set_memory.c > +++ b/arch/x86/mm/pat/set_memory.c > @@ -29,6 +29,8 @@ > #include > #include >

[RFC PATCH V3 10/11] HV/Netvsc: Add Isolation VM support for netvsc driver

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan In Isolation VM, all shared memory with host needs to mark visible to host via hvcall. vmbus_establish_gpadl() has already done it for netvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_ pagebuffer() still need to handle. Use DMA API to map/umap these memory durin

[RFC PATCH V3 11/11] HV/Storvsc: Add Isolation VM support for storvsc driver

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan In Isolation VM, all shared memory with host needs to mark visible to host via hvcall. vmbus_establish_gpadl() has already done it for storvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_ mpb_desc() still need to handle. Use DMA API to map/umap these memory during

[RFC PATCH V3 07/11] HV/Vmbus: Initialize VMbus ring buffer for Isolation VM

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan VMbus ring buffer are shared with host and it's need to be accessed via extra address space of Isolation VM with SNP support. This patch is to map the ring buffer address in extra address space via ioremap(). HV host visibility hvcall smears data in the ring buffer and so reset t

[RFC PATCH V3 09/11] HV/IOMMU: Enable swiotlb bounce buffer for Isolation VM

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Hyper-V Isolation VM requires bounce buffer support to copy data from/to encrypted memory and so enable swiotlb force mode to use swiotlb bounce buffer for DMA transaction. In Isolation VM with AMD SEV, the bounce buffer needs to be accessed via extra address space which is abov

[RFC PATCH V3 05/11] HV: Add ghcb hvcall support for SNP VM

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides ghcb hvcall to handle VMBus HVCALL_SIGNAL_EVENT and HVCALL_POST_MESSAGE msg in SNP Isolation VM. Add such support. Signed-off-by: Tianyu Lan --- arch/x86/hyperv/ivm.c | 69 + arch/x86/include/asm/mshyperv.h | 1 + dri

[RFC PATCH V3 01/11] x86/HV: Initialize GHCB page in Isolation VM

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Hyper-V exposes GHCB page via SEV ES GHCB MSR for SNP guest to communicate with hypervisor. Map GHCB page for all cpus to read/write MSR register and submit hvcall request via GHCB. Signed-off-by: Tianyu Lan --- arch/x86/hyperv/hv_init.c | 60

[RFC PATCH V3 08/11] swiotlb: Add bounce buffer remap address setting function

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan For Hyper-V isolation VM with AMD SEV SNP, the bounce buffer(shared memory) needs to be accessed via extra address space(e.g address above bit39). Hyper-V code may remap extra address space outside of swiotlb. swiotlb_ bounce() needs to use remap virtual address to copy data from

[RFC PATCH V3 02/11] x86/HV: Initialize shared memory boundary in the Isolation VM.

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Hyper-V also exposes shared memory boundary via cpuid HYPERV_CPUID_ISOLATION_CONFIG and store it in the shared_gpa_boundary of ms_hyperv struct. This prepares to share memory with host for SNP guest. Signed-off-by: Tianyu Lan --- arch/x86/kernel/cpu/mshyperv.c | 2 ++ include

[RFC PATCH V3 04/11] HV: Add Write/Read MSR registers via ghcb

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides GHCB protocol to write Synthetic Interrupt Controller MSR registers and these registers are emulated by Hypervisor rather than paravisor in VMPL0. Hyper-V requests to write SINTx MSR registers twice(once via GHCB and once via wrmsr instruction emulated by paravi

[RFC PATCH V3 03/11] x86/Hyper-V: Add new hvcall guest address host visibility support

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Add new hvcall guest address host visibility support. Mark vmbus ring buffer visible to host when create gpadl buffer and mark back to not visible when tear down gpadl buffer. Co-developed-by: Sunil Muthuswamy Signed-off-by: Tianyu Lan --- arch/x86/hyperv/Makefile |

[RFC PATCH V3 06/11] HV/Vmbus: Add SNP support for VMbus channel initiate message

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan The monitor pages in the CHANNELMSG_INITIATE_CONTACT are shared with host and so it's necessary to use hvcall to set them visible to host. In Isolation VM with AMD SEV SNP, the access address should be in the extra space which is above shared gpa boundary. So remap these pages in

[RFC PATCH V3 00/11] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-05-30 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides two kinds of Isolation VMs. VBS(Virtualization-based security) and AMD SEV-SNP unenlightened Isolation VMs. This patchset is to add support for these Isolation VM support in Linux. The memory of these vms are encrypted and host can't access guest memory directly

[linux-linus test] 162262: regressions - FAIL

2021-05-30 Thread osstest service owner
flight 162262 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/162262/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-dmrestrict-amd64-dmrestrict 7 xen-install fail REGR. vs. 152332 test-amd

[xen-unstable test] 162261: tolerable FAIL

2021-05-30 Thread osstest service owner
flight 162261 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/162261/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-armhf-armhf-xl-rtds 18 guest-start/debian.repeat fail pass in 162255 Tests which did not succeed, but

[xen-unstable-coverity test] 162265: all pass - PUSHED

2021-05-30 Thread osstest service owner
flight 162265 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/162265/ Perfect :-) All tests in this flight passed as required version targeted for testing: xen 683d899e4bffca35c5b192ea0662362b0270a695 baseline version: xen 3092

[libvirt test] 162263: regressions - FAIL

2021-05-30 Thread osstest service owner
flight 162263 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/162263/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 6 libvirt-buildfail REGR. vs. 151777 build-amd64-libvirt

[qemu-mainline test] 162260: regressions - FAIL

2021-05-30 Thread osstest service owner
flight 162260 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/162260/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-freebsd11-amd64 16 guest-saverestore fail REGR. vs. 152631 test-amd64-am