[Qemu-devel] Re: [PATCH 2/6] tcg: Add tcg_invert_cond.

2009-12-18 Thread Laurent Desnogues
On Thu, Dec 17, 2009 at 6:28 PM, Richard Henderson wrote: > It is very handy to have a reliable mapping of a condition to its inverse. > This will be used in several patches to follow. > > Signed-off-by: Richard Henderson Acked-by: Laurent Desnogues Laurent > --- >  tcg/tcg.h |    5 + >

[Qemu-devel] Re: [PATCH 1/6] tcg: Generic support for conditional set and conditional move.

2009-12-18 Thread Laurent Desnogues
On Thu, Dec 17, 2009 at 6:27 PM, Richard Henderson wrote: > Defines setcond and movcond for implementing conditional moves at > the tcg opcode level.  64-bit-on-32-bit is expanded via a setcond2 > primitive plus other operations. > > Signed-off-by: Richard Henderson > --- >  tcg/README    |   26

[Qemu-devel] Re: [PATCH 0/6] tcg conditional set/move, round 2

2009-12-18 Thread Laurent Desnogues
On Thu, Dec 17, 2009 at 8:32 PM, Richard Henderson wrote: >> funny how you seem to follow the same paths I did months ago :-) > > Heh.  They are the obvious points for improvement in the emulation. > Hopefully we can get them finished this time, so that some third > person doesn't go through the s

Re: [Qemu-devel] Re: SVM support in 0.12?

2009-12-18 Thread Alexander Graf
Am 18.12.2009 um 03:39 schrieb Jun Koi On Fri, Dec 18, 2009 at 11:37 AM, Jun Koi wrote: Hi, I am running latest Qemu 0.12-rc. My guest VM runs Linux kernel 2.6.31. Because Qemu now supports SVM, I expect to see the SVM flag in /proc/cpuinfo, but that is not the case. So it seems SVM s

Re: [Qemu-devel] [PATCH] osdep: Fix runtime failure on older Linux kernels

2009-12-18 Thread Kevin Wolf
Am 18.12.2009 10:45, schrieb Andre Przywara: > If QEMU finds newer kernel header files on compilation time, it will use > advertised features like pipe2 or SOCK_CLOEXEC by just doing a compile test. > If later the executables are executed on an older kernel (<2.6.27, > like Xen Dom0 2.6.18), then Q

[Qemu-devel] [PATCH 1/4] Do not guard qemu shadow ram work around in CONFIG_OPTIONROMS_DEPLOYED

2009-12-18 Thread Gerd Hoffmann
From: Anthony Liguori As we are going to disable CONFIG_OPTIONROMS_DEPLOYED under QEMU so that we can make proper use of DDIM. Signed-off-by: Anthony Liguori Signed-off-by: Gerd Hoffmann --- src/shadow.c | 20 1 files changed, 8 insertions(+), 12 deletions(-) diff --gi

[Qemu-devel] [PATCH 4/4] qemu: add rom loading via fw_cfg

2009-12-18 Thread Gerd Hoffmann
Add support for loading roms using the qemu fw_cfg interface, modeled after the existing cbfs support. Use it to look for vgabios (vgaroms/*) and option roms (genroms/*). Signed-off-by: Gerd Hoffmann --- src/optionroms.c | 22 ++ src/paravirt.c | 37 +++

[Qemu-devel] [PATCH 3/4] move htonl() + friends to util.h

2009-12-18 Thread Gerd Hoffmann
As the next patch will add one more user of the macros move them to util.h. Also add the 16bit variants. Signed-off-by: Gerd Hoffmann --- src/coreboot.c |5 - src/util.h |7 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/coreboot.c b/src/coreboot.c in

[Qemu-devel] [PATCH 2/4] Disable CONFIG_OPTIONROMS_DEPLOYED by default

2009-12-18 Thread Gerd Hoffmann
From: Anthony Liguori Since qemu now supports loading option roms through PCI Signed-off-by: Anthony Liguori Signed-off-by: Gerd Hoffmann --- src/config.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/config.h b/src/config.h index 91e322d..c1f151d 100644 --- a/

[Qemu-devel] [PATCH 0/4] qemu option loading

2009-12-18 Thread Gerd Hoffmann
Hi, qemu is about to change the way how option roms are loaded. pci roms will be loaded into a option rom bar (like real hardware does). non-pci roms can be loaded using the qemu firmware interface. With this change seabios will deploy all roms instead of having qemu copy them to the 0xc -

[Qemu-devel] [PATCH 2/8] pci romfiles: add property, add default to PCIDeviceInfo

2009-12-18 Thread Gerd Hoffmann
This patch adds a romfile property to the pci bus. It allows to specify a romfile to load into the rom bar of the pci device. The default value comes from a new field in PCIDeviceInfo. The property allows to change the file and also to disable the rom loading using an empty string. Signed-off-b

[Qemu-devel] [PATCH 5/8] roms: use new fw_cfg file xfer support.

2009-12-18 Thread Gerd Hoffmann
roms: use fw_cfg for vgabios and option rom loading, additionally to deploying them the traditional way (copy to 0xc -> 0xe range). Signed-off-by: Gerd Hoffmann --- hw/loader.c | 25 ++--- hw/loader.h |5 +++-- hw/pc.c |2 ++ 3 files changed, 27 insertio

[Qemu-devel] [PATCH 6/8] roms: remove option rom packing logic

2009-12-18 Thread Gerd Hoffmann
Now that we load the option roms via fw_cfg, we can stop copying them to the 0xc000 -> 0xe000. The patch does just that. Also the rom loader gets simplified as all remaining users of the rom loader load the bits at a fixed address so the packing and aligning logic can go away. Signed-off-by: Ger

[Qemu-devel] [PATCH 4/8] fw_cfg: add API for file transfer.

2009-12-18 Thread Gerd Hoffmann
This patch adds a file transfer interface to fw_cfg. Intended to be used for passing non-pci option roms and vgabios to seabios. Namespace is modeled after the existing cbfs filesystem support in seabios. Reading the new FW_CFG_FILE_DIR entry returns a file list. Fields there are in network byte

[Qemu-devel] [PATCH 8/8] debug: enable bios messages

2009-12-18 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/pc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index be70f50..18d958d 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -46,7 +46,7 @@ #include "elf.h" /* output Bochs bios info messages */ -//#define DEBUG_BIOS +#defi

[Qemu-devel] [PATCH 1/8] Support PCI based option rom loading

2009-12-18 Thread Gerd Hoffmann
From: Anthony Liguori Currently, we preload option roms into the option rom space in memory. This prevents DDIM from functioning correctly which severely limits the number of roms we can support. This patch introduces a pci_add_option_rom() which registers the PCI_ROM_ADDRESS bar which points t

[Qemu-devel] [PATCH 3/8] fw_cfg: make calls typesafe

2009-12-18 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/fw_cfg.c | 26 -- hw/fw_cfg.h | 16 +--- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c index b25afff..2e3662d 100644 --- a/hw/fw_cfg.c +++ b/hw/fw_cfg.c @@ -45,11 +45,11 @@ ty

[Qemu-devel] [PATCH 0/8] option rom loading overhaul.

2009-12-18 Thread Gerd Hoffmann
From: Anthony Liguori Hi, Option rom saga continued. This is the first series I consider ready for merging. Changes: * pci roms: will be loaded via option pci rom bar. * non-pci roms: will be loaded via fw_cfg. Note that using the old bochs-bios based pc-bios will stop working with thi

[Qemu-devel] Re: [PATCH] osdep: Fix runtime failure on older Linux kernels

2009-12-18 Thread Paolo Bonzini
On 12/18/2009 10:45 AM, Andre Przywara wrote: If QEMU finds newer kernel header files on compilation time, it will use advertised features like pipe2 or SOCK_CLOEXEC by just doing a compile test. If later the executables are executed on an older kernel (<2.6.27, like Xen Dom0 2.6.18), then QEMU w

[Qemu-devel] [PATCH] fix tool/libuser makefile race

2009-12-18 Thread Paolo Bonzini
I just had this race happen on me while building qemu. The problematic file in my case was cutils.o. I'm using GNU make's order-only dependencies to avoid that "make recurse-all" builds the tools as well. Signed-off-by: Paolo Bonzini Signed-off-by: Paolo Bonzini --- Makefile |5 - 1

[Qemu-devel] [PATCH] osdep: Fix runtime failure on older Linux kernels

2009-12-18 Thread Andre Przywara
If QEMU finds newer kernel header files on compilation time, it will use advertised features like pipe2 or SOCK_CLOEXEC by just doing a compile test. If later the executables are executed on an older kernel (<2.6.27, like Xen Dom0 2.6.18), then QEMU will fail on opening sockets and creating pipes a

Re: [Qemu-devel] Re: [PATCH 0/6] option rom patches, next round

2009-12-18 Thread Gerd Hoffmann
On 12/17/09 21:22, Anthony Liguori wrote: Very nice! No reason not to convert std vga and vmware vga to use the pci based rom loading interface. seabios thinks about vgabios.bin: Scan for VGA option rom Attempting to init PCI bdf 00:02.0 (dev/ven 1234) Attempting to map option rom on dev 0

Re: [Qemu-devel] Staging tree updated with patches I'm considering for 0.12.0

2009-12-18 Thread Gerd Hoffmann
Hi, If you have a pending patch that you think should be considered for 0.12.0, please check this tree and let me know if it's not there. Also missing: http://patchwork.ozlabs.org/patch/41172/ cheers, Gerd

Re: [Qemu-devel] Staging tree updated with patches I'm considering for 0.12.0

2009-12-18 Thread Gerd Hoffmann
Hi, If you have a pending patch that you think should be considered for 0.12.0, please check this tree and let me know if it's not there. http://patchwork.ozlabs.org/patch/40546/ is missing. cheers, Gerd

Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?

2009-12-18 Thread Gerd Hoffmann
On 12/18/09 07:12, Markus Armbruster wrote: "Sebastian Herbszt" writes: The default iobase and irq for the ne2k_isa card are 0x300 and 9. It should be possible to override both using the "-net" syntax like "-net nic,model=ne2k_isa,irq=5,iobase=0x280". -device ne2k_isa,irq=5,iobase=0x280 Al

<    1   2