Page MenuHomeFreeBSD

xen/boot: allow specifying boot method when booted from Xen
ClosedPublic

Authored by royger on Feb 12 2021, 4:00 PM.
Tags
None
Referenced Files
F122874057: D28619.id83995.diff
Wed, Jul 9, 2:37 AM
Unknown Object (File)
Tue, Jul 8, 11:24 AM
Unknown Object (File)
Tue, Jul 8, 8:59 AM
Unknown Object (File)
Tue, Jul 8, 12:29 AM
Unknown Object (File)
Tue, Jul 1, 6:22 AM
Unknown Object (File)
Mon, Jun 30, 7:57 AM
Unknown Object (File)
Wed, Jun 25, 4:46 AM
Unknown Object (File)
Tue, Jun 24, 6:14 AM
Subscribers

Details

Summary

Allow setting the bootmethod variable from the Xen PVH entry point, in
order to be able to correctly set the underlying firmware mode when
booted as a dom0.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37045
Build 33934: arc lint + arc unit

Event Timeline

sys/x86/xen/pv.c
113

I do not see why the declaration is not provided by md_var.h

sys/amd64/amd64/machdep.c
1171–1172

May be put both the var and sysctl into x86/x86/cpu_machdep.c, so that they do not duplicate. Then you would need to copy "BIOS" on i386 boot as well.

  • Move bootmethod definition to x86/cpu_machdep.c.
  • Declare it in md_var.h.
sys/amd64/include/md_var.h
58

I wasn't precise enough, sorry. I believe that you should put the declaration into x86/include/x86_var.h which is included by each md_var.h.

sys/x86/xen/pv.c
113

Is this still needed?

  • Move bootmethod declaration to x86_var.h.
  • Remove extern declaration from pv.c.
This revision is now accepted and ready to land.Feb 16 2021, 11:49 AM