diff options
author | Wei Liu <wei.liu@kernel.org> | 2021-02-03 18:04:21 +0300 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2021-02-11 11:47:05 +0300 |
commit | e997720202b363ba8000d769f114e3c2c5822227 (patch) | |
tree | 228aa21a4d103b3a22408103852b6f9f6da9a8b5 /arch/x86/include/asm/mshyperv.h | |
parent | 8f1d14cb835672cd27f6533f22f4c73e60a30727 (diff) | |
download | linux-e997720202b363ba8000d769f114e3c2c5822227.tar.xz |
x86/hyperv: detect if Linux is the root partition
For now we can use the privilege flag to check. Stash the value to be
used later.
Put in a bunch of defines for future use when we want to have more
fine-grained detection.
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210203150435.27941-3-wei.liu@kernel.org
Diffstat (limited to 'arch/x86/include/asm/mshyperv.h')
-rw-r--r-- | arch/x86/include/asm/mshyperv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 30f76b966857..4014a1ca2fae 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -239,6 +239,8 @@ int hyperv_fill_flush_guest_mapping_list( struct hv_guest_mapping_flush_list *flush, u64 start_gfn, u64 end_gfn); +extern bool hv_root_partition; + #ifdef CONFIG_X86_64 void hv_apic_init(void); void __init hv_init_spinlocks(void); |