x86/pv: provide more helpful error when CONFIG_PV32 is absent
authorJane Malalane <jane.malalane@citrix.com>
Mon, 16 Aug 2021 13:16:20 +0000 (15:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Aug 2021 13:16:20 +0000 (15:16 +0200)
commit2e5512d1ffd2e720f25c376df12db8a914117589
tree497991748612a8cf539136a6168fc16bd509e808
parentc53aa9e655e7c615283e9e9637376c2b865e9dae
x86/pv: provide more helpful error when CONFIG_PV32 is absent

Currently, when booting a 32bit dom0 kernel, the message isn't very
helpful:

  (XEN)  Xen  kernel: 64-bit, lsb
  (XEN)  Dom0 kernel: 32-bit, PAE, lsb, paddr 0x100000 -> 0x112000
  (XEN) Mismatch between Xen and DOM0 kernel
  (XEN)
  (XEN) ****************************************
  (XEN) Panic on CPU 0:
  (XEN) Could not construct domain 0
  (XEN) ****************************************

With this adjustment, it now looks like this:

  (XEN)  Xen  kernel: 64-bit, lsb
  (XEN) Found 32-bit PV kernel, but CONFIG_PV32 missing
  (XEN)
  (XEN) ****************************************
  (XEN) Panic on CPU 0:
  (XEN) Could not construct domain 0
  (XEN) ****************************************

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jane Malalane <jane.malalane@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/dom0_build.c