Re: another xen-kernel UEFI story

From: Roger Pau Monné <royger_at_freebsd.org>
Date: Fri, 22 Oct 2021 13:55:45 UTC
On Fri, Oct 22, 2021 at 11:53:59AM +0200, Lizbeth Mutterhunt, Ph.D wrote:
> This wasn’t it; still the same: preempt and stuck!
> 
> Lizbeth
> 
> > On 22 Oct 2021, at 08:59, Roger Pau Monné <royger@freebsd.org> wrote:
> > 
> > On Thu, Oct 21, 2021 at 10:48:57PM +0200, Lizbeth Mutterhunt, Ph.D wrote:
> >> /boot/loader.conf:
> >> cuse_load="YES"
> >> kernel_load="YES"
> >> vfs.root.mountfrom="ufs:ada1p6"
> >> #beastie_disable="YES"
> >> hint.hwpstate_intel.0.disabled="1"
> >> set vfs.root.mountfrom.options="rw"
> >> if_bridge_load="YES"
> >> debug.hwpstate_verbose="1"
> >> if_tap_load="YES"
> >> fusefs_load="YES"
> >> xen_kernel="/boot/xen"
> >> xen_cmdline="dom0_mem=4048M dom0_max_vcpus=4 dom0=pvh1 com1=115200,8n1
> >> guest_loglvl=all loglvl=all"
> >> boot_multicons="YES"
> >> boot_serial="YES"
> >> comconsole_speed="9600"
> >> console="comconsole,efi" *[not accepting any vidconsole]*
> >> boot_verbose="YES"
> >> vga=current
> >> bitmap_name="/boot/splash"
> >> net.link.bridge.inherit_mac=1
> >> snd_driver_load="YES"
> >> kern.racct.enable=1
> >> compat.linuxkpi.i915_disable_power_well="0"
> >> 
> >> Thanks, Roger.
> >>> 
> >> So far, so good, what do you think? will we get this thing to work?
> > 
> > Your xen_cmdline is slightly wrong, it should be:
> > 
> > xen_cmdline="dom0_mem=4048M dom0_max_vcpus=4 dom0=pvh com1=9600,8n1 guest_loglvl=all loglvl=all"
> > 
> > Note it's dom0=pvh, not pvh1. And the speed of the serial console
> > needs to be adjusted to match the one you are using (9600), or you
> > won't see any output.
> > 
> > Also make sure the line is not split by your editor, or else it won't
> > be parsed correctly.

Let's try with a slightly simpler loader.conf then, just to see if we
can get some output from Xen:

xen_kernel="/boot/xen"
xen_cmdline="dom0_mem=4048M dom0=pvh com1=9600,8n1 console=com1,vga"
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="9600"
console="comconsole,efi"
vfs.root.mountfrom="ufs:ada1p6"

Can you paste all the output you get on the serial when using this
loader.conf?

Thanks, Roger.