summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/hyperv-tlfs.h
diff options
context:
space:
mode:
authorJinank Jain <jinankjain@linux.microsoft.com>2023-01-02 07:12:53 +0000
committerWei Liu <wei.liu@kernel.org>2023-01-17 13:37:19 +0000
commitf0d2f5c2c000c03aa6b6a29954042174b59a0d1c (patch)
treee271a53362519c41a9a2014f202291b7870f42c1 /arch/x86/include/asm/hyperv-tlfs.h
parent7fec185a56f45b98d9547982370c2ab33f0f72b5 (diff)
downloadlinux-f0d2f5c2c000c03aa6b6a29954042174b59a0d1c.tar.gz
linux-f0d2f5c2c000c03aa6b6a29954042174b59a0d1c.tar.bz2
linux-f0d2f5c2c000c03aa6b6a29954042174b59a0d1c.zip
x86/hyperv: Add an interface to do nested hypercalls
According to TLFS, in order to communicate to L0 hypervisor there needs to be an additional bit set in the control register. This communication is required to perform privileged instructions which can only be performed by L0 hypervisor. An example of that could be setting up the VMBus infrastructure. Signed-off-by: Jinank Jain <jinankjain@linux.microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/24f9d46d5259a688113e6e5e69e21002647f4949.1672639707.git.jinankjain@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/hyperv-tlfs.h')
-rw-r--r--arch/x86/include/asm/hyperv-tlfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/hyperv-tlfs.h b/arch/x86/include/asm/hyperv-tlfs.h
index 271d081dc251..566ac26239ba 100644
--- a/arch/x86/include/asm/hyperv-tlfs.h
+++ b/arch/x86/include/asm/hyperv-tlfs.h
@@ -382,7 +382,8 @@ struct hv_nested_enlightenments_control {
__u32 reserved:31;
} features;
struct {
- __u32 reserved;
+ __u32 inter_partition_comm:1;
+ __u32 reserved:31;
} hypercallControls;
} __packed;