2.6.39-rc6 does not boot on Xen 3.3.1
2.6.39-rc6 does not boot on Xen 3.3.1. It hangs on the first line with Xen Platform PCI: unrecognised magic value.
Is this intentional?
Signature · 1 line
Alex Bligh
Quoted 4 lines · --On 7 May 2011 18:31:49 +0100 Alex Bligh <[email protected]> wrote:
2.6.39-rc6 does not boot on Xen 3.3.1. It hangs on the first line with Xen Platform PCI: unrecognised magic value.
Is this intentional?
Sorry, I should have been mode explicit:
A PV on HVM guest with CONFIG_XEN does not boot on Xen 2.6.39-rc6, failing with the above error.
$ fgrep XEN .config CONFIG_XEN=y CONFIG_XEN_DOM0=y CONFIG_XEN_PRIVILEGED_GUEST=y CONFIG_XEN_PVHVM=y CONFIG_XEN_MAX_DOMAIN_MEMORY=128 CONFIG_XEN_SAVE_RESTORE=y # CONFIG_XEN_DEBUG_FS is not set CONFIG_PCI_XEN=y # CONFIG_XEN_PCIDEV_FRONTEND is not set # CONFIG_XEN_BLKDEV_FRONTEND is not set # CONFIG_NETXEN_NIC is not set # CONFIG_XEN_NETDEV_FRONTEND is not set CONFIG_HVC_XEN=y # CONFIG_XEN_FBDEV_FRONTEND is not set CONFIG_XEN_BALLOON=y CONFIG_XEN_SCRUB_PAGES=y # CONFIG_XEN_DEV_EVTCHN is not set CONFIG_XEN_BACKEND=y # CONFIG_XENFS is not set CONFIG_XEN_SYS_HYPERVISOR=y # CONFIG_XEN_GNTDEV is not set # CONFIG_XEN_PLATFORM_PCI is not set CONFIG_SWIOTLB_XEN=y
Signature · 1 line
Alex Bligh
Quoted 7 lines · Alex Bligh
Quoted 4 lines · --On 7 May 2011 18:31:49 +0100 Alex Bligh <[email protected]> wrote:
2.6.39-rc6 does not boot on Xen 3.3.1. It hangs on the first line with Xen Platform PCI: unrecognised magic value.
Is this intentional?
I expect 3.3.1 didn't support the unplug protocol. However the default failure behaviour should be to continue with emulated devices and not hang.
If you have the platform device enabled (which you do not, according the the .config below) then you can also cause the kernel to ignore the requirement for unplug using the "xen_emul_unplug" kernel command line option, assuming you are happy that you have ensured that the emulated devices cannot be used by mistake.
Quoted 4 lines
Sorry, I should have been mode explicit:
A PV on HVM guest with
CONFIG_XENdoes not boot on Xen 2.6.39-rc6, failing with the above error.
It's not really a PV on HVM guest since CONFIG_XEN_PLATFORM_PCI is disabled.
Please can you capture a log of the kernel boot (e.g. setup the guest kernel to use a serial console and use serial = "file:/tmp/blah.log" in your guest cfg) and also show us your domU command line and guest cfg file.
Are you running a self-built 3.3.1 or is this some distro package?
Thanks,
Ian.
Quoted 26 lines
$ fgrep XEN .config CONFIG_XEN=y CONFIG_XEN_DOM0=y CONFIG_XEN_PRIVILEGED_GUEST=y CONFIG_XEN_PVHVM=y CONFIG_XEN_MAX_DOMAIN_MEMORY=128 CONFIG_XEN_SAVE_RESTORE=y # CONFIG_XEN_DEBUG_FS is not set CONFIG_PCI_XEN=y # CONFIG_XEN_PCIDEV_FRONTEND is not set # CONFIG_XEN_BLKDEV_FRONTEND is not set # CONFIG_NETXEN_NIC is not set # CONFIG_XEN_NETDEV_FRONTEND is not set CONFIG_HVC_XEN=y # CONFIG_XEN_FBDEV_FRONTEND is not set CONFIG_XEN_BALLOON=y CONFIG_XEN_SCRUB_PAGES=y # CONFIG_XEN_DEV_EVTCHN is not set CONFIG_XEN_BACKEND=y # CONFIG_XENFS is not set CONFIG_XEN_SYS_HYPERVISOR=y # CONFIG_XEN_GNTDEV is not set # CONFIG_XEN_PLATFORM_PCI is not set CONFIG_SWIOTLB_XEN=y
Quoted 4 lines · --On 9 May 2011 09:44:11 +0100 Ian Campbell <[email protected]> wrote:
Quoted 3 lines · Alex Bligh
--On 7 May 2011 18:31:49 +0100 Alex Bligh <[email protected]> wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
2.6.39-rc6 does not boot on Xen 3.3.1. It hangs on the first line with Xen Platform PCI: unrecognised magic value.
Is this intentional?
I expect 3.3.1 didn't support the unplug protocol. However the default failure behaviour should be to continue with emulated devices and not hang.
Indeed it did not, but 2.6.38 booted just fine, so something has changed.
Quoted 5 lines
If you have the platform device enabled (which you do not, according the the .config below) then you can also cause the kernel to ignore the requirement for unplug using the "
xen_emul_unplug" kernel command line option, assuming you are happy that you have ensured that the emulated devices cannot be used by mistake.
Sure. But whatever the change is means standard vendor kernels with standard boot lines will not run on 3.3.1.
Quoted 7 lines
Quoted 4 lines
Sorry, I should have been mode explicit:
A PV on HVM guest with
CONFIG_XENdoes not boot on Xen 2.6.39-rc6, failing with the above error.It's not really a PV on HVM guest since
CONFIG_XEN_PLATFORM_PCIis disabled.
I should have explained - I just got a stock set of Ubuntu kernel options, compiled 2.6.39-rc6, and it won't boot on 3.3.1, whereas 2.6.38 does. I know I can get it to boot.
Quoted 4 lines
Please can you capture a log of the kernel boot (e.g. setup the guest kernel to use a serial console and use serial = "file:/tmp/blah.log" in your guest cfg) and also show us your domU command line and guest cfg file.
There was only one line of kernel output which was the one I pasted! Just "Xen Platform PCI: unrecognised magic value" then death.
Quoted 1 line
Are you running a self-built 3.3.1 or is this some distro package?
It's a self-built version of the Centos package, with a minor (and irrelevant) mod.
Signature · 1 line
Alex Bligh
Quoted 10 lines · Alex Bligh
Quoted 7 lines · --On 9 May 2011 09:44:11 +0100 Ian Campbell <[email protected]> wrote:
Quoted 6 lines · Alex Bligh
Quoted 3 lines · --On 7 May 2011 18:31:49 +0100 Alex Bligh <[email protected]> wrote:
2.6.39-rc6 does not boot on Xen 3.3.1. It hangs on the first line with Xen Platform PCI: unrecognised magic value.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Is this intentional?
I expect 3.3.1 didn't support the unplug protocol. However the default failure behaviour should be to continue with emulated devices and not hang.
Indeed it did not, but 2.6.38 booted just fine, so something has changed.
Are you able to bisect?
Quoted 8 lines
Quoted 5 lines
If you have the platform device enabled (which you do not, according the the .config below) then you can also cause the kernel to ignore the requirement for unplug using the "
xen_emul_unplug" kernel command line option, assuming you are happy that you have ensured that the emulated devices cannot be used by mistake.Sure. But whatever the change is means standard vendor kernels with standard boot lines will not run on 3.3.1.
Yes, so we should fix it.
Quoted 8 lines
Quoted 4 lines
Please can you capture a log of the kernel boot (e.g. setup the guest kernel to use a serial console and use serial = "file:/tmp/blah.log" in your guest cfg) and also show us your domU command line and guest cfg file.
There was only one line of kernel output which was the one I pasted! Just "Xen Platform PCI: unrecognised magic value" then death.
In which case I think you need to remove "quiet" from your command line and add "debug" instead and ensure your console= line is correct. You could also try using the earlyprintk option to see if that produces more output.
Do you get any output on the hypervisor console ("xl dmesg" or "xm dmesg" depending on toolstack).
Quoted 4 lines
Quoted 1 line
Are you running a self-built 3.3.1 or is this some distro package?
It's a self-built version of the Centos package, with a minor (and irrelevant) mod.
Ian.
Ian,
Quoted 3 lines
Quoted 1 line
Indeed it did not, but 2.6.38 booted just fine, so something has changed.
Are you able to bisect?
I was going to do that but there was a huge pull shortly before rc6. I wanted to check no one was going to say "oh yes, we disabled 3.3.1 support", rather than say:
Quoted 1 line
Yes, so we should fix it.
^- that :-)
Quoted 8 lines
Quoted 3 lines
There was only one line of kernel output which was the one I pasted! Just "Xen Platform PCI: unrecognised magic value" then death.
In which case I think you need to remove "quiet" from your command line and add "debug" instead and ensure your console= line is correct. You could also try using the earlyprintk option to see if that produces more output.
Doh! I bet it's Ubuntu's default quiet option. I'd assumed I had full output because of the "Xen Platform PCI: unrecognised magic value".
Quoted 2 lines
Do you get any output on the hypervisor console ("xl dmesg" or "xm dmesg" depending on toolstack).
I will look. Would a full .config help too?
Signature · 1 line
Alex Bligh
Quoted 6 lines · Alex Bligh
Ian,
Quoted 3 lines
Quoted 1 line
Indeed it did not, but 2.6.38 booted just fine, so something has changed.
Are you able to bisect?
Quoted 7 lines
I was going to do that but there was a huge pull shortly before rc6. I wanted to check no one was going to say "oh yes, we disabled 3.3.1 support", rather than say:
Quoted 1 line
Yes, so we should fix it.
^- that :-)
Sure ;-)
It would probably be useful to do a quick test of the commit before the huge pull you refer to above before embarking on a full bisection.
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines
There was only one line of kernel output which was the one I pasted! Just "Xen Platform PCI: unrecognised magic value" then death.
In which case I think you need to remove "quiet" from your command line and add "debug" instead and ensure your console= line is correct. You could also try using the earlyprintk option to see if that produces more output.
Quoted 7 lines
Doh! I bet it's Ubuntu's default quiet option. I'd assumed I had full output because of the "Xen Platform PCI: unrecognised magic value".
Quoted 2 lines
Do you get any output on the hypervisor console ("xl dmesg" or "xm dmesg" depending on toolstack).
I will look. Would a full .config help too?
Can't hurt. Full guest cfg file would be useful too, plus any file from under /var/log/xen which has your guest's name in its name.
Ian.
Quoted 28 lines · Alex Bligh
Quoted 4 lines · --On 7 May 2011 18:31:49 +0100 Alex Bligh <[email protected]> wrote:
2.6.39-rc6 does not boot on Xen 3.3.1. It hangs on the first line with Xen Platform PCI: unrecognised magic value.
Is this intentional?
Sorry, I should have been mode explicit:
A PV on HVM guest with
CONFIG_XENdoes not boot on Xen 2.6.39-rc6, failing with the above error.$ fgrep XEN .config CONFIG_XEN=y CONFIG_XEN_DOM0=y CONFIG_XEN_PRIVILEGED_GUEST=y CONFIG_XEN_PVHVM=y CONFIG_XEN_MAX_DOMAIN_MEMORY=128 CONFIG_XEN_SAVE_RESTORE=y # CONFIG_XEN_DEBUG_FS is not set CONFIG_PCI_XEN=y # CONFIG_XEN_PCIDEV_FRONTEND is not set # CONFIG_XEN_BLKDEV_FRONTEND is not set # CONFIG_NETXEN_NIC is not set # CONFIG_XEN_NETDEV_FRONTEND is not set CONFIG_HVC_XEN=y # CONFIG_XEN_FBDEV_FRONTEND is not set CONFIG_XEN_BALLOON=y
Quoted 8 lines
CONFIG_XEN_SCRUB_PAGES=y # CONFIG_XEN_DEV_EVTCHN is not set CONFIG_XEN_BACKEND=y # CONFIG_XENFS is not set CONFIG_XEN_SYS_HYPERVISOR=y # CONFIG_XEN_GNTDEV is not set # CONFIG_XEN_PLATFORM_PCI is not set CONFIG_SWIOTLB_XEN=y
If you want a good PV on HVM configuration you need to enable also:
CONFIG_XEN_BLKDEV_FRONTENDCONFIG_XEN_NETDEV_FRONTENDCONFIG_XEN_PLATFORM_PCI
I suggest to compile CONFIG_XEN_PLATFORM_PCI built-in.
Quoted 7 lines · --On 9 May 2011 13:17:15 +0100 Stefano Stabellini…
If you want a good PV on HVM configuration you need to enable also:
CONFIG_XEN_BLKDEV_FRONTENDCONFIG_XEN_NETDEV_FRONTENDCONFIG_XEN_PLATFORM_PCII suggest to compile
CONFIG_XEN_PLATFORM_PCIbuilt-in.
I would not disagree - what I did was just take the stock Ubuntu generic kernel options, and was somewhat surprised to find the resultant kernel was unbootable, whereas it isn't on 2.6.38.
Signature · 1 line
Alex Bligh