git: 13f34e211b5c - main - PVH: Set bootmethod to PVH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Oct 2022 06:03:17 UTC
The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=13f34e211b5c8311ea751704a0e7fc26e1b53537 commit 13f34e211b5c8311ea751704a0e7fc26e1b53537 Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2022-08-13 00:57:19 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2022-10-18 06:02:22 +0000 PVH: Set bootmethod to PVH Now that we can PVH boot on a non-Xen hypervisor, we shouldn't set machdep.bootmethod to "XEN". Instead, set it to "PVH"; there are other ways to discern the hypervisor. Reviewed by: royger Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D36191 --- sys/x86/xen/pv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/x86/xen/pv.c b/sys/x86/xen/pv.c index 162504f5120c..28794db98700 100644 --- a/sys/x86/xen/pv.c +++ b/sys/x86/xen/pv.c @@ -421,7 +421,7 @@ xen_pvh_parse_preload_data(uint64_t modulep) (char *)(start_info->cmdline_paddr + KERNBASE), ", \t\n"); kmdp = NULL; - strlcpy(bootmethod, "XEN", sizeof(bootmethod)); + strlcpy(bootmethod, "PVH", sizeof(bootmethod)); } boothowto |= boot_env_to_howto();