Building firmware on NetBSD
Hey guys,
I am trying to get firmware (hvmloader) to work on NetBSD/XEN 3.0.
I have succesfully built it but it segfaults on _start when I run it.
Is anyone skilled enough to help a bit with the asm code ? Or maybe someone can give me information.
Thank you for your time
-Pierrick Brossin
Quoted 10 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pierrick Brossin
Sent: 03 October 2006 14:17
To: [email protected]
Subject: [Xen-devel] Building firmware on NetBSD
Quoted 5 lines
Hey guys,
I am trying to get firmware (hvmloader) to work on NetBSD/XEN 3.0.
I have succesfully built it but it segfaults on
_startwhen I run it.
What do you mean "when I run it"? Hvmloader is not a regular application, it's a piece of code intended to be loaded by Xen into the virtual machine and executed there - is that what you're doing, or are you typing "hvmloader" at the command prompt on the machine - the latter is almost guaranteed to fail immediately (_start sounds like the first thing that happens).
As far as I can think, there shouldn't be any difference to this on a NetBSD or Linux platform, as both use gcc and related tools to build the binary, and unless something has gone wrong with the link-scripts or there are bugs in the gcc & friends for NetBSD that generates different code or the linker locates the code to a different location, I don't see how the OS that you build hvmloader on would of any matter...
--
Mats
Quoted 17 lines
Is anyone skilled enough to help a bit with the asm code ? Or maybe someone can give me information.
Thank you for your time
-Pierrick Brossin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Mats
What do you mean "when I run it"? Hvmloader is not a regular application, it's a piece of code intended to be loaded by Xen into the virtual machine and executed there - is that what you're doing, or are you typing "hvmloader" at the command prompt on the machine - the latter is almost guaranteed to fail immediately (
_startsounds like the first thing that happens).
Yes I am running in on CLI. I am happy to hear it. I have successfully been able to build hvmloader and will therefore try to run something using it tonite when I'll be home.
Is it the only thing we will need to be able to run unmodified guest os?
Thanks you for your time
-Pierrick Brossin
Quoted 21 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pierrick Brossin
Sent: 03 October 2006 15:05
To: Petersson, Mats
Cc: [email protected]
Subject: Re: [Xen-devel] Building firmware on NetBSDQuoted 2 lines · Mats
What do you mean "when I run it"? Hvmloader is not a regular application, it's a piece of code intended to be loaded by
Xen into the
Quoted 1 line
virtual machine and executed there - is that what you're
doing, or are
Quoted 1 line
you typing "hvmloader" at the command prompt on the machine
- the latter
Quoted 1 line
is almost guaranteed to fail immediately (
_startsoundslike the first
Quoted 8 lines
Quoted 1 line
thing that happens).
Yes I am running in on CLI. I am happy to hear it. I have successfully been able to build hvmloader and will therefore try to run something using it tonite when I'll be home.
Is it the only thing we will need to be able to run unmodified guest os?
That, ioemu (modified qemu) and the relevant processor, yes... Hvmloader copies the bios into the correct place in memory, so that it's able to boot the "disk" that you specify. Of course, you do need an operating system to run too ;-)
--
Mats
Quoted 13 lines
Thanks you for your time
-Pierrick Brossin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 4 lines · Mats
That, ioemu (modified qemu) and the relevant processor, yes... Hvmloader copies the bios into the correct place in memory, so that it's able to boot the "disk" that you specify. Of course, you do need an operating system to run too ;-)
Thanks for your time.
I will try to make ioemu work on NetBSD and see how things go. What do you mean with relevant processor. One that supports virtualization such as Core 2 Duo right ?
Is running unmodified os as fast as running a modified one ?
-Pierrick Brossin
Quoted 17 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pierrick Brossin
Sent: 03 October 2006 15:17
To: Petersson, Mats
Cc: [email protected]
Subject: Re: [Xen-devel] Building firmware on NetBSDQuoted 1 line · Mats
That, ioemu (modified qemu) and the relevant processor,
yes... Hvmloader
Quoted 1 line
copies the bios into the correct place in memory, so that
it's able to
Quoted 1 line
boot the "disk" that you specify. Of course, you do need an
Quoted 8 lines
operating
Quoted 1 line
system to run too ;-)
Thanks for your time.
I will try to make ioemu work on NetBSD and see how things go. What do you mean with relevant processor. One that supports virtualization such as Core 2 Duo right ?
Yes, although I prefer the AMD versions, for obvious reasons...
Quoted 2 lines
Is running unmodified os as fast as running a modified one ?
Depends on what you're doing, generally the modified will win - but in some cases it's hard to get the source-code to modify [or find someone that is ABLE to modify it for that matter].
--
Mats
Quoted 12 lines
-Pierrick Brossin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Mats
Depends on what you're doing, generally the modified will win - but in some cases it's hard to get the source-code to modify [or find someone that is ABLE to modify it for that matter].
What I mean is. In what way running an unmodified os with xen is better than running it directly in qemu ?
Is it faster ? Is it completely different ?
Thanks again for your time
-Pierrick Brossin
Quoted 13 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Pierrick Brossin
Sent: 03 October 2006 15:26
To: Petersson, Mats
Cc: [email protected]
Subject: Re: [Xen-devel] Building firmware on NetBSDQuoted 1 line · Mats
Depends on what you're doing, generally the modified will
Quoted 8 lines
win - but in
Quoted 1 line
some cases it's hard to get the source-code to modify [or
find someone
Quoted 1 line
that is ABLE to modify it for that matter].
What I mean is. In what way running an unmodified os with xen is better
than running it directly in qemu ?
It's "different", and faster than qemu, for sure - if it's not, then something is wrong with Xen... Qemu emulates instructions, Xen fully virt guests only have certain instructions emulated in Xen. It uses qemu to perform hardware accesses, such as hard-disk interface and network card, but not for the instructions that are executed in the guest.
Quoted 2 lines
Is it faster ? Is it completely different ?
Should be faster, as long as you don't spend 100% of the time doing disk or network accesses [in which case the difference is probably in QEMU's favour - but difference would be small anyways, as most of the time is spent simulating the IO access, and little time actually performing some "real" work].
--
Mats
Quoted 15 lines
Thanks again for your time
-Pierrick Brossin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel