diff options
author | Tianyu Lan <Tianyu.Lan@microsoft.com> | 2021-10-25 14:21:14 +0200 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2021-10-28 13:26:36 +0200 |
commit | 9a8797722e4239242d0cb4cc4baa805df6ac979e (patch) | |
tree | 8cb351e1b1c93971e0eb1910ca9f9ed34151e16e /drivers/hv/Kconfig | |
parent | Drivers: hv: vmbus: Add SNP support for VMbus channel initiate message (diff) | |
download | linux-9a8797722e4239242d0cb4cc4baa805df6ac979e.tar.xz linux-9a8797722e4239242d0cb4cc4baa805df6ac979e.zip |
Drivers: hv: vmbus: Initialize VMbus ring buffer for Isolation VM
VMbus ring buffer are shared with host and it's need to
be accessed via extra address space of Isolation VM with
AMD SNP support. This patch is to map the ring buffer
address in extra address space via vmap_pfn(). Hyperv set
memory host visibility hvcall smears data in the ring buffer
and so reset the ring buffer memory to zero after mapping.
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/20211025122116.264793-10-ltykernel@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/Kconfig')
-rw-r--r-- | drivers/hv/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig index d1123ceb38f3..dd12af20e467 100644 --- a/drivers/hv/Kconfig +++ b/drivers/hv/Kconfig @@ -8,6 +8,7 @@ config HYPERV || (ARM64 && !CPU_BIG_ENDIAN)) select PARAVIRT select X86_HV_CALLBACK_VECTOR if X86 + select VMAP_PFN help Select this option to run Linux as a Hyper-V client operating system. |