* Re: [Qemu-devel] [PATCH] write option roms in pc-bios/
[not found] ` <1261664861-15493-1-git-send-email-pbonzini@redhat.com>
@ 2010-01-07 20:03 ` Anthony Liguori
2010-01-08 7:31 ` [Qemu-devel] " Paolo Bonzini
0 siblings, 1 reply; 8+ messages in thread
From: Anthony Liguori @ 2010-01-07 20:03 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Juan Quintela, qemu-devel, Avi Kivity
On 12/24/2009 08:27 AM, Paolo Bonzini wrote:
>>> The gdt address calculation in linuxboot.bin is broken in two ways: first
>>> it loads %cs into %eax, but that instruction leaves the high bits of %eax
>>> undefined and we did not clear them. Secondly, we completely ignore the
>>> incorrect %eax, and use the undefined %ebx instead.
>>>
>>> With these issues fixed, linuxboot works again.
>>>
>> Wow, I wonder how it worked for me...
>>
> Got it. The option roms are built in pc-bios/optionrom, but QEMU loads
> the ones in pc-bios. So actually I was always testing Alexander's code
> even though I had done a "make -B" to feel safer. :-(
>
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
>
This will wreak havoc on the tree since these are built by default and
they are replacing files in revision control.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
2010-01-07 20:03 ` [Qemu-devel] [PATCH] write option roms in pc-bios/ Anthony Liguori
@ 2010-01-08 7:31 ` Paolo Bonzini
2010-01-08 7:57 ` Aurelien Jarno
2010-01-08 12:29 ` Anthony Liguori
0 siblings, 2 replies; 8+ messages in thread
From: Paolo Bonzini @ 2010-01-08 7:31 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Avi Kivity, qemu-devel, Juan Quintela
On 01/07/2010 09:03 PM, Anthony Liguori wrote:
>
> This will wreak havoc on the tree since these are built by default and
> they are replacing files in revision control.
... the next question is why are they (linuxboot.bin and multiboot.bin)
in revision control since they do not require any strange tool to be built.
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
2010-01-08 7:31 ` [Qemu-devel] " Paolo Bonzini
@ 2010-01-08 7:57 ` Aurelien Jarno
2010-01-08 8:19 ` Paolo Bonzini
2010-01-08 12:29 ` Anthony Liguori
1 sibling, 1 reply; 8+ messages in thread
From: Aurelien Jarno @ 2010-01-08 7:57 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Juan Quintela, qemu-devel, Avi Kivity
Paolo Bonzini a écrit :
> On 01/07/2010 09:03 PM, Anthony Liguori wrote:
>> This will wreak havoc on the tree since these are built by default and
>> they are replacing files in revision control.
>
> ... the next question is why are they (linuxboot.bin and multiboot.bin)
> in revision control since they do not require any strange tool to be built.
>
They require an i386 cross compiler, which is not available on all
installations.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
2010-01-08 7:57 ` Aurelien Jarno
@ 2010-01-08 8:19 ` Paolo Bonzini
2010-01-08 9:12 ` Aurelien Jarno
0 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2010-01-08 8:19 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: Juan Quintela, qemu-devel, Avi Kivity
On 01/08/2010 08:57 AM, Aurelien Jarno wrote:
> Paolo Bonzini a écrit :
>> On 01/07/2010 09:03 PM, Anthony Liguori wrote:
>>> This will wreak havoc on the tree since these are built by default and
>>> they are replacing files in revision control.
>>
>> ... the next question is why are they (linuxboot.bin and multiboot.bin)
>> in revision control since they do not require any strange tool to be built.
>
> They require an i386 cross compiler, which is not available on all
> installations.
They are being built always anyway now, since their target
pc-bios/optionrom/linuxboot.bin does not exist on a checked out tree or
even a release tree. But no one has complained.
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
2010-01-08 8:19 ` Paolo Bonzini
@ 2010-01-08 9:12 ` Aurelien Jarno
0 siblings, 0 replies; 8+ messages in thread
From: Aurelien Jarno @ 2010-01-08 9:12 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Avi Kivity, qemu-devel, Juan Quintela
Paolo Bonzini a écrit :
> On 01/08/2010 08:57 AM, Aurelien Jarno wrote:
>> Paolo Bonzini a écrit :
>>> On 01/07/2010 09:03 PM, Anthony Liguori wrote:
>>>> This will wreak havoc on the tree since these are built by default and
>>>> they are replacing files in revision control.
>>> ... the next question is why are they (linuxboot.bin and multiboot.bin)
>>> in revision control since they do not require any strange tool to be built.
>> They require an i386 cross compiler, which is not available on all
>> installations.
>
> They are being built always anyway now, since their target
> pc-bios/optionrom/linuxboot.bin does not exist on a checked out tree or
> even a release tree. But no one has complained.
They are only built on i386 and x86_64 hosts, look at the configure
script. We should continue providing all the ROM binaries, even the x86
ones. We can't require that every installation has a (cross-)compiler
for x86, the same way that we don't require a sparc or powerpc cross
compiler for x86 installations.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
[not found] <668989114.432161262946223474.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
@ 2010-01-08 10:26 ` Paolo Bonzini
2010-01-08 17:54 ` Blue Swirl
0 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2010-01-08 10:26 UTC (permalink / raw)
To: Aurelien Jarno; +Cc: Avi Kivity, qemu-devel, Juan Quintela
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
>>>>> This will wreak havoc on the tree since these are built by default and
>>>>> they are replacing files in revision control.
>>>> ... the next question is why are they (linuxboot.bin and multiboot.bin)
>>>> in revision control since they do not require any strange tool to be built.
>>> They require an i386 cross compiler, which is not available on all
>>> installations.
>>
>> They are being built always anyway now, since their target
>> pc-bios/optionrom/linuxboot.bin does not exist on a checked out tree or
>> even a release tree. But no one has complained.
>
> They are only built on i386 and x86_64 hosts, look at the configure
> script. We should continue providing all the ROM binaries, even the x86
> ones.
Oops, my bad. :-( The only reason I see against my patch is that the option
ROMS do not change that often; maybe I felt that it should be done different
only because I screwed up and I'm blaming the code instead of myself.
There is also the problem that they are not built on Darwin and Solaris,
which is possibly even worse.
What about adding to version control a stamp file and using it to avoid
useless changes to pc-bios/*.bin? Such as overwriting the .bin files only
when the .S file changes. Something like the attached patch.
Paolo
[-- Attachment #2: qemu-optionrom-v2.patch --]
[-- Type: application/mbox, Size: 2518 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
2010-01-08 7:31 ` [Qemu-devel] " Paolo Bonzini
2010-01-08 7:57 ` Aurelien Jarno
@ 2010-01-08 12:29 ` Anthony Liguori
1 sibling, 0 replies; 8+ messages in thread
From: Anthony Liguori @ 2010-01-08 12:29 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Avi Kivity, qemu-devel, Juan Quintela
On 01/08/2010 01:31 AM, Paolo Bonzini wrote:
> On 01/07/2010 09:03 PM, Anthony Liguori wrote:
>>
>> This will wreak havoc on the tree since these are built by default and
>> they are replacing files in revision control.
>
> ... the next question is why are they (linuxboot.bin and
> multiboot.bin) in revision control since they do not require any
> strange tool to be built.
If you're just thinking about x86 and kvm, sure, but when you consider a
default build creates tcg targets for arm, sparc, mips, etc, and that
they all need firmware, it's extremely unlikely that any given user has
all of the cross compilers available to build all of the roms.
Yes, we could and should be smarter about building roms when we can and
making sure we install and use those whenever possible. We still need
to ship roms though for the foreseeable future.
Regards,
Anthony Liguori
> Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] write option roms in pc-bios/
2010-01-08 10:26 ` Paolo Bonzini
@ 2010-01-08 17:54 ` Blue Swirl
0 siblings, 0 replies; 8+ messages in thread
From: Blue Swirl @ 2010-01-08 17:54 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Juan Quintela, Avi Kivity, Aurelien Jarno, qemu-devel
On Fri, Jan 8, 2010 at 10:26 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>>>>> This will wreak havoc on the tree since these are built by default and
>>>>>> they are replacing files in revision control.
>>>>> ... the next question is why are they (linuxboot.bin and multiboot.bin)
>>>>> in revision control since they do not require any strange tool to be built.
>>>> They require an i386 cross compiler, which is not available on all
>>>> installations.
>>>
>>> They are being built always anyway now, since their target
>>> pc-bios/optionrom/linuxboot.bin does not exist on a checked out tree or
>>> even a release tree. But no one has complained.
>>
>> They are only built on i386 and x86_64 hosts, look at the configure
>> script. We should continue providing all the ROM binaries, even the x86
>> ones.
>
> Oops, my bad. :-( The only reason I see against my patch is that the option
> ROMS do not change that often; maybe I felt that it should be done different
> only because I screwed up and I'm blaming the code instead of myself.
> There is also the problem that they are not built on Darwin and Solaris,
> which is possibly even worse.
>
> What about adding to version control a stamp file and using it to avoid
> useless changes to pc-bios/*.bin? Such as overwriting the .bin files only
> when the .S file changes. Something like the attached patch.
configure could also detect that we are building inside the source
tree (not in an object tree outside of the source directory) and not
compile the roms in that case. Or we could make object tree use
mandatory, it's a good practice anyway.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-01-08 17:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4B337318.6080901@redhat.com>
[not found] ` <1261664861-15493-1-git-send-email-pbonzini@redhat.com>
2010-01-07 20:03 ` [Qemu-devel] [PATCH] write option roms in pc-bios/ Anthony Liguori
2010-01-08 7:31 ` [Qemu-devel] " Paolo Bonzini
2010-01-08 7:57 ` Aurelien Jarno
2010-01-08 8:19 ` Paolo Bonzini
2010-01-08 9:12 ` Aurelien Jarno
2010-01-08 12:29 ` Anthony Liguori
[not found] <668989114.432161262946223474.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2010-01-08 10:26 ` Paolo Bonzini
2010-01-08 17:54 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).