* Building firmware on NetBSD
@ 2006-10-03 13:17 Pierrick Brossin
2006-10-03 13:53 ` Petersson, Mats
0 siblings, 1 reply; 8+ messages in thread
From: Pierrick Brossin @ 2006-10-03 13:17 UTC (permalink / raw)
To: xen-devel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Building firmware on NetBSD
2006-10-03 13:17 Building firmware on NetBSD Pierrick Brossin
@ 2006-10-03 13:53 ` Petersson, Mats
2006-10-03 14:04 ` Pierrick Brossin
0 siblings, 1 reply; 8+ messages in thread
From: Petersson, Mats @ 2006-10-03 13:53 UTC (permalink / raw)
To: Pierrick Brossin, xen-devel
> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of
> Pierrick Brossin
> Sent: 03 October 2006 14:17
> To: xen-devel@lists.xensource.com
> Subject: [Xen-devel] 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.
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
>
> 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
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building firmware on NetBSD
2006-10-03 13:53 ` Petersson, Mats
@ 2006-10-03 14:04 ` Pierrick Brossin
2006-10-03 14:12 ` Petersson, Mats
0 siblings, 1 reply; 8+ messages in thread
From: Pierrick Brossin @ 2006-10-03 14:04 UTC (permalink / raw)
To: Petersson, Mats; +Cc: xen-devel
On Tue, Oct 03, 2006 at 03:53:53PM +0200, Petersson, Mats wrote:
> 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).
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Building firmware on NetBSD
2006-10-03 14:04 ` Pierrick Brossin
@ 2006-10-03 14:12 ` Petersson, Mats
2006-10-03 14:16 ` Pierrick Brossin
0 siblings, 1 reply; 8+ messages in thread
From: Petersson, Mats @ 2006-10-03 14:12 UTC (permalink / raw)
To: Pierrick Brossin; +Cc: xen-devel
> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of
> Pierrick Brossin
> Sent: 03 October 2006 15:05
> To: Petersson, Mats
> Cc: xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] Building firmware on NetBSD
>
> On Tue, Oct 03, 2006 at 03:53:53PM +0200, Petersson, Mats wrote:
> > 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).
>
> 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
>
> Thanks you for your time
>
> -Pierrick Brossin
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building firmware on NetBSD
2006-10-03 14:12 ` Petersson, Mats
@ 2006-10-03 14:16 ` Pierrick Brossin
2006-10-03 14:20 ` Petersson, Mats
0 siblings, 1 reply; 8+ messages in thread
From: Pierrick Brossin @ 2006-10-03 14:16 UTC (permalink / raw)
To: Petersson, Mats; +Cc: xen-devel
On Tue, Oct 03, 2006 at 04:12:05PM +0200, Petersson, Mats wrote:
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Building firmware on NetBSD
2006-10-03 14:16 ` Pierrick Brossin
@ 2006-10-03 14:20 ` Petersson, Mats
2006-10-03 14:25 ` Pierrick Brossin
0 siblings, 1 reply; 8+ messages in thread
From: Petersson, Mats @ 2006-10-03 14:20 UTC (permalink / raw)
To: Pierrick Brossin; +Cc: xen-devel
> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of
> Pierrick Brossin
> Sent: 03 October 2006 15:17
> To: Petersson, Mats
> Cc: xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] Building firmware on NetBSD
>
> On Tue, Oct 03, 2006 at 04:12:05PM +0200, Petersson, Mats wrote:
> > 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 ?
Yes, although I prefer the AMD versions, for obvious reasons...
>
> 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
>
>
> -Pierrick Brossin
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building firmware on NetBSD
2006-10-03 14:20 ` Petersson, Mats
@ 2006-10-03 14:25 ` Pierrick Brossin
2006-10-03 15:17 ` Petersson, Mats
0 siblings, 1 reply; 8+ messages in thread
From: Pierrick Brossin @ 2006-10-03 14:25 UTC (permalink / raw)
To: Petersson, Mats; +Cc: xen-devel
On Tue, Oct 03, 2006 at 04:20:09PM +0200, Petersson, Mats wrote:
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Building firmware on NetBSD
2006-10-03 14:25 ` Pierrick Brossin
@ 2006-10-03 15:17 ` Petersson, Mats
0 siblings, 0 replies; 8+ messages in thread
From: Petersson, Mats @ 2006-10-03 15:17 UTC (permalink / raw)
To: Pierrick Brossin; +Cc: xen-devel
> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of
> Pierrick Brossin
> Sent: 03 October 2006 15:26
> To: Petersson, Mats
> Cc: xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] Building firmware on NetBSD
>
> On Tue, Oct 03, 2006 at 04:20:09PM +0200, Petersson, Mats wrote:
> > 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 ?
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.
>
> 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
>
>
> Thanks again for your time
>
>
> -Pierrick Brossin
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-10-03 15:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03 13:17 Building firmware on NetBSD Pierrick Brossin
2006-10-03 13:53 ` Petersson, Mats
2006-10-03 14:04 ` Pierrick Brossin
2006-10-03 14:12 ` Petersson, Mats
2006-10-03 14:16 ` Pierrick Brossin
2006-10-03 14:20 ` Petersson, Mats
2006-10-03 14:25 ` Pierrick Brossin
2006-10-03 15:17 ` Petersson, Mats
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.