Re: HVM paravirt block/nic drivers

2010-01-21 Thread David
Well that seemed to be enabled by default.

2010/1/11 Ivan Voras 

> 2010/1/11 David :
> > Sorry, I see i'm using paravirt block device drivers.
> >
> > Timecounters tick every 1.000 msec
> > acd0: CDROM  at ata1-master WDMA2
> > xbd0: 5120MB  at device/vbd/768 on xenbus0
> > xbd0: attaching as ad0
> > xbd1: 658MB  at device/vbd/5632 on xenbus0
> > xbd1: attaching as ad2
>
> You could use for example glabel labels to avoid changing device names.
>
> > xn0:  at device/vif/0 on xenbus0
> > xn0: Ethernet address: 00:16:3e:03:68:45
> > WARNING: WITNESS option enabled, expect reduced performance.
> > GEOM: ad0s1: geometry does not match label (16h,63s != 255h,63s).
> > Trying to mount root from ufs:/dev/ad0s1a
> > lock order reversal:
> >  1st 0xff800a550778 bufwait (bufwait) @
> /usr/src/sys/kern/vfs_bio.c:2559
> >  2nd 0xff0001440400 dirhash (dirhash) @
>
> You also appear to be using a CURRENT kernel, or at least a kernel
> with debugging enabled - which is fine if you know you want it.
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: HVM paravirt block/nic drivers

2010-01-11 Thread Ivan Voras
2010/1/11 David :
> Sorry, I see i'm using paravirt block device drivers.
>
> Timecounters tick every 1.000 msec
> acd0: CDROM  at ata1-master WDMA2
> xbd0: 5120MB  at device/vbd/768 on xenbus0
> xbd0: attaching as ad0
> xbd1: 658MB  at device/vbd/5632 on xenbus0
> xbd1: attaching as ad2

You could use for example glabel labels to avoid changing device names.

> xn0:  at device/vif/0 on xenbus0
> xn0: Ethernet address: 00:16:3e:03:68:45
> WARNING: WITNESS option enabled, expect reduced performance.
> GEOM: ad0s1: geometry does not match label (16h,63s != 255h,63s).
> Trying to mount root from ufs:/dev/ad0s1a
> lock order reversal:
>  1st 0xff800a550778 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2559
>  2nd 0xff0001440400 dirhash (dirhash) @

You also appear to be using a CURRENT kernel, or at least a kernel
with debugging enabled - which is fine if you know you want it.
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: HVM paravirt block/nic drivers

2010-01-11 Thread David
Sorry, I see i'm using paravirt block device drivers.


Timecounters tick every 1.000 msec
acd0: CDROM  at ata1-master WDMA2
xbd0: 5120MB  at device/vbd/768 on xenbus0
xbd0: attaching as ad0
xbd1: 658MB  at device/vbd/5632 on xenbus0
xbd1: attaching as ad2
xn0:  at device/vif/0 on xenbus0
xn0: Ethernet address: 00:16:3e:03:68:45
WARNING: WITNESS option enabled, expect reduced performance.
GEOM: ad0s1: geometry does not match label (16h,63s != 255h,63s).
Trying to mount root from ufs:/dev/ad0s1a
lock order reversal:
 1st 0xff800a550778 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2559
 2nd 0xff0001440400 dirhash (dirhash) @
/usr/src/sys/ufs/ufs/ufs_dirhash.c:285
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x81e
_sx_xlock() at _sx_xlock+0x55
ufsdirhash_acquire() at ufsdirhash_acquire+0x33
ufsdirhash_add() at ufsdirhash_add+0x19
ufs_direnter() at ufs_direnter+0x88b
ufs_makeinode() at ufs_makeinode+0x31c
VOP_CREATE_APV() at VOP_CREATE_APV+0x8d
vn_open_cred() at vn_open_cred+0x423
kern_openat() at kern_openat+0x179
syscall() at syscall+0x1af
Xfast_syscall() at Xfast_syscall+0xe1
--- syscall (5, FreeBSD ELF64, open), rip = 0x80096157c, rsp =
0x7fffd488, rbp = 0x800ab4700 ---

2010/1/11 David 

> Thanks guys, got that working.
>
> How about block device drivers?
>
> 2010/1/11 Ivan Voras 
>
> The given command was slightly wrong; it should have been:
>>
>> make kernel KERNCONF=XENHVM
>>
>>
>> 2010/1/11 David :
>>  > install -o root -g wheel -m 555   zfs.ko /boot/kernel
>> > install -o root -g wheel -m 555   zfs.ko.symbols /boot/kernel
>> > ===> zlib (install)
>> > install -o root -g wheel -m 555   zlib.ko /boot/kernel
>> > install -o root -g wheel -m 555   zlib.ko.symbols /boot/kernel
>> > kldxref /boot/kernel
>> > make: don't know how to make XENHVM. Stop
>> > Any Idea?
>> >
>> > 2010/1/11 James Smith 
>> >
>> >>  Compile kernel in the normal way, using the XENHVM config.
>> >>
>> >>
>> >>
>> >> cd /usr/src
>> >>
>> >> make kernel XENHVM
>> >>
>> >> edit /etc/rc.conf
>> >>
>> >>
>> >>
>> >> Change network interface to re0, save and reboot.
>> >>
>> >>
>> >>
>> >> Regards,
>> >>
>> >> James Smith,
>> >>
>> >> *From:* David [mailto:ad...@dmarkey.com]
>> >> *Sent:* 11 January 2010 11:01
>> >> *To:* James Smith
>> >> *Cc:* freebsd-xen@freebsd.org
>> >> *Subject:* Re: HVM paravirt block/nic drivers
>> >>
>> >>
>> >>
>> >> Well, im using the AMD64 ISO image,
>> >>
>> >>
>> >>
>> >> So i'll have to recompile the kernel? Are there instructions anywhere?
>> >>
>> >>
>> >>
>> >> Thanks.
>> >>
>> >>
>> >>
>> >> David
>> >>
>> >> 2010/1/11 James Smith 
>> >>
>> >> Hi,
>> >>
>> >> Have you compiled XENHVM kernel?  It makes some improvements to
>> networking.
>> >>  Ensure you add the correct device to /etc/rc.conf afterwards, I
>> believe it
>> >> changes to "xn0" when running XENHVM.
>> >>
>> >> Regards,
>> >> James Smith,
>> >>
>> >> -Original Message-
>> >> From: owner-freebsd-...@freebsd.org [mailto:
>> owner-freebsd-...@freebsd.org]
>> >> On Behalf Of David
>> >> Sent: 10 January 2010 23:43
>> >> To: freebsd-xen@freebsd.org
>> >> Subject: HVM paravirt block/nic drivers
>> >>
>> >> Hi Guys/Girls,
>> >>
>> >>
>> >> Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
>> >> emulated block/nic drivers.
>> >>
>> >> Is there any work being done on writing paravirt drivers for FreeBSD in
>> >> HVM?
>> >>
>> >> Regards,
>> >>
>> >> David
>> >>
>> >> ___
>> >> freebsd-xen@freebsd.org mailing list
>> >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
>> >> To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
>> >>
>> >>
>> >>
>> > ___
>> > freebsd-xen@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-xen
>> > To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
>> >
>>
>
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: HVM paravirt block/nic drivers

2010-01-11 Thread David
Thanks guys, got that working.

How about block device drivers?

2010/1/11 Ivan Voras 

> The given command was slightly wrong; it should have been:
>
> make kernel KERNCONF=XENHVM
>
>
> 2010/1/11 David :
>  > install -o root -g wheel -m 555   zfs.ko /boot/kernel
> > install -o root -g wheel -m 555   zfs.ko.symbols /boot/kernel
> > ===> zlib (install)
> > install -o root -g wheel -m 555   zlib.ko /boot/kernel
> > install -o root -g wheel -m 555   zlib.ko.symbols /boot/kernel
> > kldxref /boot/kernel
> > make: don't know how to make XENHVM. Stop
> > Any Idea?
> >
> > 2010/1/11 James Smith 
> >
> >>  Compile kernel in the normal way, using the XENHVM config.
> >>
> >>
> >>
> >> cd /usr/src
> >>
> >> make kernel XENHVM
> >>
> >> edit /etc/rc.conf
> >>
> >>
> >>
> >> Change network interface to re0, save and reboot.
> >>
> >>
> >>
> >> Regards,
> >>
> >> James Smith,
> >>
> >> *From:* David [mailto:ad...@dmarkey.com]
> >> *Sent:* 11 January 2010 11:01
> >> *To:* James Smith
> >> *Cc:* freebsd-xen@freebsd.org
> >> *Subject:* Re: HVM paravirt block/nic drivers
> >>
> >>
> >>
> >> Well, im using the AMD64 ISO image,
> >>
> >>
> >>
> >> So i'll have to recompile the kernel? Are there instructions anywhere?
> >>
> >>
> >>
> >> Thanks.
> >>
> >>
> >>
> >> David
> >>
> >> 2010/1/11 James Smith 
> >>
> >> Hi,
> >>
> >> Have you compiled XENHVM kernel?  It makes some improvements to
> networking.
> >>  Ensure you add the correct device to /etc/rc.conf afterwards, I believe
> it
> >> changes to "xn0" when running XENHVM.
> >>
> >> Regards,
> >> James Smith,
> >>
> >> -Original Message-
> >> From: owner-freebsd-...@freebsd.org [mailto:
> owner-freebsd-...@freebsd.org]
> >> On Behalf Of David
> >> Sent: 10 January 2010 23:43
> >> To: freebsd-xen@freebsd.org
> >> Subject: HVM paravirt block/nic drivers
> >>
> >> Hi Guys/Girls,
> >>
> >>
> >> Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
> >> emulated block/nic drivers.
> >>
> >> Is there any work being done on writing paravirt drivers for FreeBSD in
> >> HVM?
> >>
> >> Regards,
> >>
> >> David
> >>
> >> ___
> >> freebsd-xen@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
> >> To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
> >>
> >>
> >>
> > ___
> > freebsd-xen@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-xen
> > To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
> >
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: HVM paravirt block/nic drivers

2010-01-11 Thread Ivan Voras
The given command was slightly wrong; it should have been:

make kernel KERNCONF=XENHVM


2010/1/11 David :
> install -o root -g wheel -m 555   zfs.ko /boot/kernel
> install -o root -g wheel -m 555   zfs.ko.symbols /boot/kernel
> ===> zlib (install)
> install -o root -g wheel -m 555   zlib.ko /boot/kernel
> install -o root -g wheel -m 555   zlib.ko.symbols /boot/kernel
> kldxref /boot/kernel
> make: don't know how to make XENHVM. Stop
> Any Idea?
>
> 2010/1/11 James Smith 
>
>>  Compile kernel in the normal way, using the XENHVM config.
>>
>>
>>
>> cd /usr/src
>>
>> make kernel XENHVM
>>
>> edit /etc/rc.conf
>>
>>
>>
>> Change network interface to re0, save and reboot.
>>
>>
>>
>> Regards,
>>
>> James Smith,
>>
>> *From:* David [mailto:ad...@dmarkey.com]
>> *Sent:* 11 January 2010 11:01
>> *To:* James Smith
>> *Cc:* freebsd-xen@freebsd.org
>> *Subject:* Re: HVM paravirt block/nic drivers
>>
>>
>>
>> Well, im using the AMD64 ISO image,
>>
>>
>>
>> So i'll have to recompile the kernel? Are there instructions anywhere?
>>
>>
>>
>> Thanks.
>>
>>
>>
>> David
>>
>> 2010/1/11 James Smith 
>>
>> Hi,
>>
>> Have you compiled XENHVM kernel?  It makes some improvements to networking.
>>  Ensure you add the correct device to /etc/rc.conf afterwards, I believe it
>> changes to "xn0" when running XENHVM.
>>
>> Regards,
>> James Smith,
>>
>> -Original Message-
>> From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org]
>> On Behalf Of David
>> Sent: 10 January 2010 23:43
>> To: freebsd-xen@freebsd.org
>> Subject: HVM paravirt block/nic drivers
>>
>> Hi Guys/Girls,
>>
>>
>> Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
>> emulated block/nic drivers.
>>
>> Is there any work being done on writing paravirt drivers for FreeBSD in
>> HVM?
>>
>> Regards,
>>
>> David
>>
>> ___
>> freebsd-xen@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
>> To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
>>
>>
>>
> ___
> freebsd-xen@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
> To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: HVM paravirt block/nic drivers

2010-01-11 Thread David
install -o root -g wheel -m 555   zfs.ko /boot/kernel
install -o root -g wheel -m 555   zfs.ko.symbols /boot/kernel
===> zlib (install)
install -o root -g wheel -m 555   zlib.ko /boot/kernel
install -o root -g wheel -m 555   zlib.ko.symbols /boot/kernel
kldxref /boot/kernel
make: don't know how to make XENHVM. Stop
Any Idea?

2010/1/11 James Smith 

>  Compile kernel in the normal way, using the XENHVM config.
>
>
>
> cd /usr/src
>
> make kernel XENHVM
>
> edit /etc/rc.conf
>
>
>
> Change network interface to re0, save and reboot.
>
>
>
> Regards,
>
> James Smith,
>
> *From:* David [mailto:ad...@dmarkey.com]
> *Sent:* 11 January 2010 11:01
> *To:* James Smith
> *Cc:* freebsd-xen@freebsd.org
> *Subject:* Re: HVM paravirt block/nic drivers
>
>
>
> Well, im using the AMD64 ISO image,
>
>
>
> So i'll have to recompile the kernel? Are there instructions anywhere?
>
>
>
> Thanks.
>
>
>
> David
>
> 2010/1/11 James Smith 
>
> Hi,
>
> Have you compiled XENHVM kernel?  It makes some improvements to networking.
>  Ensure you add the correct device to /etc/rc.conf afterwards, I believe it
> changes to "xn0" when running XENHVM.
>
> Regards,
> James Smith,
>
> -Original Message-----
> From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org]
> On Behalf Of David
> Sent: 10 January 2010 23:43
> To: freebsd-xen@freebsd.org
> Subject: HVM paravirt block/nic drivers
>
> Hi Guys/Girls,
>
>
> Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
> emulated block/nic drivers.
>
> Is there any work being done on writing paravirt drivers for FreeBSD in
> HVM?
>
> Regards,
>
> David
>
> ___
> freebsd-xen@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
> To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
>
>
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


RE: HVM paravirt block/nic drivers

2010-01-11 Thread James Smith
Compile kernel in the normal way, using the XENHVM config.

cd /usr/src
make kernel XENHVM
edit /etc/rc.conf

Change network interface to re0, save and reboot.

Regards,
James Smith,
From: David [mailto:ad...@dmarkey.com]
Sent: 11 January 2010 11:01
To: James Smith
Cc: freebsd-xen@freebsd.org
Subject: Re: HVM paravirt block/nic drivers

Well, im using the AMD64 ISO image,

So i'll have to recompile the kernel? Are there instructions anywhere?

Thanks.

David
2010/1/11 James Smith mailto:james.sm...@m247.com>>
Hi,

Have you compiled XENHVM kernel?  It makes some improvements to networking.  
Ensure you add the correct device to /etc/rc.conf afterwards, I believe it 
changes to "xn0" when running XENHVM.

Regards,
James Smith,
-Original Message-
From: owner-freebsd-...@freebsd.org<mailto:owner-freebsd-...@freebsd.org> 
[mailto:owner-freebsd-...@freebsd.org<mailto:owner-freebsd-...@freebsd.org>] On 
Behalf Of David
Sent: 10 January 2010 23:43
To: freebsd-xen@freebsd.org<mailto:freebsd-xen@freebsd.org>
Subject: HVM paravirt block/nic drivers
Hi Guys/Girls,


Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
emulated block/nic drivers.

Is there any work being done on writing paravirt drivers for FreeBSD in
HVM?

Regards,

David
___
freebsd-xen@freebsd.org<mailto:freebsd-xen@freebsd.org> mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to 
"freebsd-xen-unsubscr...@freebsd.org<mailto:freebsd-xen-unsubscr...@freebsd.org>"

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: HVM paravirt block/nic drivers

2010-01-11 Thread David
Well, im using the AMD64 ISO image,

So i'll have to recompile the kernel? Are there instructions anywhere?

Thanks.

David
2010/1/11 James Smith 

> Hi,
>
> Have you compiled XENHVM kernel?  It makes some improvements to networking.
>  Ensure you add the correct device to /etc/rc.conf afterwards, I believe it
> changes to "xn0" when running XENHVM.
>
> Regards,
> James Smith,
>
> -Original Message-
> From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org]
> On Behalf Of David
> Sent: 10 January 2010 23:43
> To: freebsd-xen@freebsd.org
> Subject: HVM paravirt block/nic drivers
>
>  Hi Guys/Girls,
>
>
> Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
> emulated block/nic drivers.
>
> Is there any work being done on writing paravirt drivers for FreeBSD in
> HVM?
>
> Regards,
>
> David
>  ___
> freebsd-xen@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
> To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


RE: HVM paravirt block/nic drivers

2010-01-11 Thread James Smith
Hi,

Have you compiled XENHVM kernel?  It makes some improvements to networking.  
Ensure you add the correct device to /etc/rc.conf afterwards, I believe it 
changes to "xn0" when running XENHVM.

Regards,
James Smith,

-Original Message-
From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org] On 
Behalf Of David
Sent: 10 January 2010 23:43
To: freebsd-xen@freebsd.org
Subject: HVM paravirt block/nic drivers

Hi Guys/Girls,


Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
emulated block/nic drivers.

Is there any work being done on writing paravirt drivers for FreeBSD in
HVM?

Regards,

David
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


HVM paravirt block/nic drivers

2010-01-10 Thread David
Hi Guys/Girls,


Successfully got a FreeBSD 8 HVM DomU installed. I see its using the
emulated block/nic drivers.

Is there any work being done on writing paravirt drivers for FreeBSD in
HVM?

Regards,

David
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"