FreeBSD Alpha5 amd64 - Citrix Xen 6.2 problem
Mark Felder
feld at FreeBSD.org
Mon Oct 14 15:17:22 UTC 2013
On Mon, Oct 14, 2013, at 9:29, Roger Pau Monné wrote:
> On 14/10/13 15:57, Mark Felder wrote:
> > Patching 9-STABLE with this applies cleanly, but I'm guessing the work
> > done with the restructuring so it fits in GENERIC is not permitting it
> > to build.
> >
> >
> > /usr/src/sys/dev/xen/blkfront/blkfront.c: In function 'blkfront_probe':
> > /usr/src/sys/dev/xen/blkfront/blkfront.c:405: warning: implicit
> > declaration of function 'xen_hvm_domain'
> > /usr/src/sys/dev/xen/blkfront/blkfront.c:405: warning: nested extern
> > declaration of 'xen_hvm_domain' [-Wnested-externs]
> > *** [blkfront.o] Error code 1
> >
> > Stop in /usr/obj/usr/src/sys/XENHVM.
> > *** [buildkernel] Error code 1
> >
> > Stop in /usr/src.
> > *** [buildkernel] Error code 1
> >
> > Stop in /usr/src.
>
> Yes, the xen_hvm_domain function is not available in 9-STABLE, you
> should be able to replace the 'if' gate with a '#ifdef XENHVM .. #endif'
> (not pretty, but should do it's job).
>
I have just tested that patched on FreeBSD 9.1-p7 and it works
perfectly. I am able to boot the OS with no issues and mounting CDROMs
works fine as well. One thing to note is that it does change the disk
from /dev/adX to /dev/adaX which is something that was happening between
FreeBSD 9 and FreeBSD 10 anyway. Anyone who applies this patch should
update their fstab before rebooting.
https://feld.me/freebsd/freebsd9-xen-cdrom-fix.patch
Thanks again Roger and Justin -- you've just made a huge impact in
FreeBSD usability on XenServer.
More information about the freebsd-xen
mailing list