Re: [Qemu-devel] Third shot at adding IPMI to qemu

2012-07-19 Thread Paolo Bonzini
Il 19/07/2012 20:53, miny...@acm.org ha scritto: > Ok, everything passes through checkpatch without an error now. I have > added some tests to verify basic operation of the device, and I've > hacked in some documentation, though I'm not sure if it's in the proper > location, as I never got a respo

Re: [Qemu-devel] [PATCH] configure: Support system emulation with large memory on w32 hosts

2012-07-19 Thread Alexey Kardashevskiy
On 20/07/12 16:05, Alexey Kardashevskiy wrote: > On 20/07/12 15:37, Alexey Kardashevskiy wrote: >> On 20/07/12 15:23, Stefan Weil wrote: >>> Am 20.07.2012 05:53, schrieb Alexey Kardashevskiy: On 19/07/12 02:37, Stefan Weil wrote: > 32-bit applications on Windows normally only get virtual m

Re: [Qemu-devel] [PATCH] configure: Support system emulation with large memory on w32 hosts

2012-07-19 Thread Alexey Kardashevskiy
On 20/07/12 15:37, Alexey Kardashevskiy wrote: > On 20/07/12 15:23, Stefan Weil wrote: >> Am 20.07.2012 05:53, schrieb Alexey Kardashevskiy: >>> On 19/07/12 02:37, Stefan Weil wrote: 32-bit applications on Windows normally only get virtual memory in the lower 2 GiB address space. >>>

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Laszlo Ersek
On 07/20/12 07:16, Stefan Hajnoczi wrote: > On Thu, Jul 19, 2012 at 7:04 PM, Laszlo Ersek wrote: >> Hello Stefan, >> >> On 07/19/12 17:48, Stefan Hajnoczi wrote: >>> On Thu, Jul 19, 2012 at 4:41 PM, Paolo Bonzini wrote: Il 19/07/2012 17:40, Stefan Hajnoczi ha scritto: > On Sun, Jun 24, 2

Re: [Qemu-devel] [PATCH] configure: Support system emulation with large memory on w32 hosts

2012-07-19 Thread Alexey Kardashevskiy
On 20/07/12 15:23, Stefan Weil wrote: > Am 20.07.2012 05:53, schrieb Alexey Kardashevskiy: >> On 19/07/12 02:37, Stefan Weil wrote: >>> 32-bit applications on Windows normally only get virtual memory in >>> the lower 2 GiB address space. >>> >>> Because of memory fragmentation, VirtualAlloc() usual

Re: [Qemu-devel] [PATCH] configure: Support system emulation with large memory on w32 hosts

2012-07-19 Thread Stefan Weil
Am 20.07.2012 05:53, schrieb Alexey Kardashevskiy: On 19/07/12 02:37, Stefan Weil wrote: 32-bit applications on Windows normally only get virtual memory in the lower 2 GiB address space. Because of memory fragmentation, VirtualAlloc() usually won't get 1 GiB of contiguous virtual memory in that

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Stefan Hajnoczi
On Thu, Jul 19, 2012 at 7:04 PM, Laszlo Ersek wrote: > Hello Stefan, > > On 07/19/12 17:48, Stefan Hajnoczi wrote: >> On Thu, Jul 19, 2012 at 4:41 PM, Paolo Bonzini wrote: >>> Il 19/07/2012 17:40, Stefan Hajnoczi ha scritto: On Sun, Jun 24, 2012 at 4:11 PM, Zhi Yong Wu wrote: >> pull? >

Re: [Qemu-devel] [PATCH] configure: Support system emulation with large memory on w32 hosts

2012-07-19 Thread Alexey Kardashevskiy
On 19/07/12 02:37, Stefan Weil wrote: > 32-bit applications on Windows normally only get virtual memory in > the lower 2 GiB address space. > > Because of memory fragmentation, VirtualAlloc() usually won't get 1 GiB > of contiguous virtual memory in that address space. Therefore running > system e

[Qemu-devel] (no subject)

2012-07-19 Thread Guan Xuetao
are available in the git repository at: git://github.com/gxt/QEMU.git unicore32 Andreas Färber (1): target-unicore32: Drop UC32_CPUID macros Guan Xuetao (13): unicore32-softmmu: Add unicore32-softmmu build support unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) inst

Re: [Qemu-devel] [PATCH v4 4/5] prepare to create HPET, RTC and i8254 through composition

2012-07-19 Thread Wanpeng Li
On Thu, Jul 19, 2012 at 03:23:32PM -0500, Anthony Liguori wrote: >Wanpeng Li writes: > >> [CCing ML] >> >> From: Anthony Liguori > >Each of these devices should be a separate patch. > >Please don't just send patches from branches of mine. Spend some time >to understand the code and break thin

Re: [Qemu-devel] [SeaBIOS] [seabios PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs

2012-07-19 Thread Eduardo Habkost
On Thu, Jul 19, 2012 at 09:12:54PM -0400, Kevin O'Connor wrote: > On Thu, Jul 19, 2012 at 05:52:42PM -0300, Eduardo Habkost wrote: > > Extract Local APIC IDs directly from the CPUs, and instead of check for > > "i < CountCPUs", check if the APIC ID was present on boot, when building > > ACPI tables

Re: [Qemu-devel] [PATCH 2/2] vexpress: Add NOR1 Flash support

2012-07-19 Thread Peter Crosthwaite
On Thu, Jul 19, 2012 at 7:16 PM, jagan <402ja...@gmail.com> wrote: > Yes, I have used same drive_get(IF_PFLASH, 0, 0) with two flashes. > As these flashes are two different banks with individual bases address, I > used the same. > > Was there any block allocation problem with this..will you please

Re: [Qemu-devel] [SeaBIOS] [seabios PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs

2012-07-19 Thread Kevin O'Connor
On Thu, Jul 19, 2012 at 05:52:42PM -0300, Eduardo Habkost wrote: > Extract Local APIC IDs directly from the CPUs, and instead of check for > "i < CountCPUs", check if the APIC ID was present on boot, when building > ACPI tables and the MP-Table. > > This keeps ACPI Processor ID == APIC ID, but all

Re: [Qemu-devel] [SeaBIOS] [PATCH 2/2] lsi53c895a boot support

2012-07-19 Thread Kevin O'Connor
On Thu, Jul 19, 2012 at 06:15:03PM +0200, Gerd Hoffmann wrote: > This patch adds support for the lsi53c895a scsi host adapter, > allowing seabios to boot from scsi disks and cdroms connected > to the lsi scsi hba emulated by qemu. > > This driver was written by looking at the expectations of qemu'

Re: [Qemu-devel] [SeaBIOS] [PATCH 1/2] usb attached scsi boot support

2012-07-19 Thread Kevin O'Connor
On Thu, Jul 19, 2012 at 06:15:02PM +0200, Gerd Hoffmann wrote: > This patch adds support for booting from UAS (usb > attached scsi) devices. > > For now only usb 2.0 support is there. On usb 3.0 the > UAS protocol uses streams, so changes will be required > to make usb 3.0 devices fly once we hav

Re: [Qemu-devel] [PATCH] audio: Make PC speaker audio card available by default

2012-07-19 Thread malc
On Thu, 19 Jul 2012, Anthony Liguori wrote: > On 07/19/2012 10:57 AM, Jan Kiszka wrote: > > Signed-off-by: Jan Kiszka > > Broke the build. I'm also confused about why this is necessary. It built fine here[1]. So was i, but... > > You can just set CONFIG_PCSPK=y in default-configs/${ARCH}.mak

[Qemu-devel] buildbot failure in qemu on default_i386_debian_6_0

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_debian_6_0/builds/333 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Buil

Re: [Qemu-devel] [PATCH] audio: Make PC speaker audio card available by default

2012-07-19 Thread Anthony Liguori
On 07/19/2012 10:57 AM, Jan Kiszka wrote: Signed-off-by: Jan Kiszka Broke the build. I'm also confused about why this is necessary. You can just set CONFIG_PCSPK=y in default-configs/${ARCH}.mak to enable it and indeed, it's enabled by default for a bunch of targets including x86_64. So...

[Qemu-devel] [PATCH] Revert "audio: Make PC speaker audio card available by default"

2012-07-19 Thread Anthony Liguori
This reverts commit 504972922da9b562f15e13544d3efca84b46b8fd which broke the build for ARM. I don't think this change is necessary. If I'm wrong, please recommit this changeset with an appropriate fix for ARM. Signed-off-by: Anthony Liguori --- configure |4 ++-- 1 files changed, 2 inserti

[Qemu-devel] buildbot failure in qemu on default_i386_out_of_tree

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_i386_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_i386_out_of_tree/builds/519 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Bu

[Qemu-devel] buildbot failure in qemu on default_mingw32

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/322 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason:

[Qemu-devel] buildbot failure in qemu on default_x86_64_out_of_tree

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_out_of_tree while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_out_of_tree/builds/519 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuk

[Qemu-devel] buildbot failure in qemu on default_openbsd_4.9

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_openbsd_4.9 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_openbsd_4.9/builds/322 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_openbsd49 Bu

[Qemu-devel] buildbot failure in qemu on default_openbsd_current

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_openbsd_current while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_openbsd_current/builds/323 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: brad_openbsd

[Qemu-devel] buildbot failure in qemu on default_x86_64_debian_6_0

2012-07-19 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_debian_6_0/builds/333 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki

Re: [Qemu-devel] [PATCH] qemu-char: (Re-)connect for tcp_chr_write() unconnected writing

2012-07-19 Thread Anthony Liguori
Lei Li writes: > tcp_chr_write() did not deal with writing to an unconnected > connection and return the original length of the data, it's > not right and would cause false writing. So (re-)connect it > and return 0 for this situation. > > Signed-off-by: Lei Li Looks good. Reviewed-by: Anthony

Re: [Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default

2012-07-19 Thread Gleb Natapov
On Thu, Jul 19, 2012 at 05:52:41PM -0300, Eduardo Habkost wrote: > When resetting an I/O APIC, its ID is set to 0, so set it to 0 on the > MADT table too. > Actually BIOS needs to configure ioapic id to a uniqe value. This does not really matter for KVM though. > Signed-off-by: Eduardo Habkost >

[Qemu-devel] [seabios PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs

2012-07-19 Thread Eduardo Habkost
Extract Local APIC IDs directly from the CPUs, and instead of check for "i < CountCPUs", check if the APIC ID was present on boot, when building ACPI tables and the MP-Table. This keeps ACPI Processor ID == APIC ID, but allows the hardware<->Seabios interface be completely APIC-ID based, and Seabi

[Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default

2012-07-19 Thread Eduardo Habkost
When resetting an I/O APIC, its ID is set to 0, so set it to 0 on the MADT table too. Signed-off-by: Eduardo Habkost --- src/acpi.c |2 +- src/config.h |2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/acpi.c b/src/acpi.c index 55e4607..3f55de9 100644 --- a/src/a

[Qemu-devel] [seabios PATCH 0/2] Allow non-contiguous APIC IDs

2012-07-19 Thread Eduardo Habkost
Now this is an actual proposal I would like to get included on Seabios. It's much simpler than the previous RFCs. It simply changes the ACPI and mptable code to not require APIC IDs to be contiguous, eliminates references to the CountCPUs variable, using a 256-bit APIC ID bitmap to find out which

Re: [Qemu-devel] [PATCH v4 0/5] refactor PC machine, i440fx and piix3 to take advantage of QOM

2012-07-19 Thread Anthony Liguori
Paolo Bonzini writes: > Il 18/07/2012 15:19, Wanpeng Li ha scritto: >> [CCing ML] >> >> This series aggressively refactors the PC machine initialization to be more >> modelled and less ad-hoc. The highlights of this series are: >> >> 1) Things like -m and -bios-name are now device model proper

Re: [Qemu-devel] [PATCH v4 4/5] prepare to create HPET, RTC and i8254 through composition

2012-07-19 Thread Anthony Liguori
Wanpeng Li writes: > [CCing ML] > > From: Anthony Liguori Each of these devices should be a separate patch. Please don't just send patches from branches of mine. Spend some time to understand the code and break things up appropriately. Regards, Anthony Liguori > The HPET usually sits on

Re: [Qemu-devel] [PATCH v4 4/5] prepare to create HPET, RTC and i8254 through composition

2012-07-19 Thread Anthony Liguori
Markus Armbruster writes: > Wanpeng Li writes: > >> [CCing ML] >> >> From: Anthony Liguori >> >> The HPET usually sits on the LPC bus (which replaces ISA in modern systems). >> It's sometimes a dedicated chip but can certain co-exist in a Super IO chip. >> I think in terms of where it would

[Qemu-devel] [PATCH 12/18] IPMI: Add a PC ISA type structure

2012-07-19 Thread minyard
From: Corey Minyard This provides the base infrastructure to tie IPMI low-level interfaces into a PC ISA bus. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/isa_ipmi.c

[Qemu-devel] [PATCH 02/18] pc: move SMBIOS setup to after device init

2012-07-19 Thread minyard
From: Corey Minyard Setting up the firmware interface for the SMBIOS table needs to be done later in the process, after device initialization, so that devices can add entries to the table. Signed-off-by: Corey Minyard --- hw/pc.c | 24 ++-- hw/pc.h | 11 ++

[Qemu-devel] [PATCH 18/18] IPMI: Add documentation.

2012-07-19 Thread minyard
From: Corey Minyard Add some basic documentation for the IPMI device. Signed-off-by: Corey Minyard --- qemu-options.hx | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index c5f592c..598b3d3 100644 ---

[Qemu-devel] [PATCH 16/18] IPMI: Add an external connection simulation interface

2012-07-19 Thread minyard
From: Corey Minyard This adds an interface for IPMI that connects to a remote BMC over a chardev (generally a TCP socket). The OpenIPMI lanserv simulator describes this interface, see that for interface details. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + def

[Qemu-devel] [PATCH 03/18] vl: Move init_timer_alarm() earlier

2012-07-19 Thread minyard
From: Corey Minyard The timers may be used in initialization, so move them earlier so they are ready. A reconnect options will be added to qemu-char, and it uses a timer, but the timer alarm wasn't initialized yet. Signed-off-by: Corey Minyard --- vl.c | 10 +- 1 files changed, 5 in

[Qemu-devel] [PATCH 05/18] qemu-char: Allow a chardev to reconnect if disconnected

2012-07-19 Thread minyard
From: Corey Minyard Allow a socket that connects to reconnect on a periodic basis if it fails to connect at startup or if the connection drops while in use. Signed-off-by: Corey Minyard --- qemu-char.c | 62 ++ qemu-char.h |4 ++

[Qemu-devel] [PATCH 04/18] qemu-char: Allocate CharDriverState in qemu_chr_new_from_opts

2012-07-19 Thread minyard
From: Corey Minyard This allocates the CharDriverState structure in a more logical place. It reduces code size and it allows a coming option to automatically attempt to reconnect a chardev if the connection fails. Signed-off-by: Corey Minyard --- console.c |6 +--- console.h

[Qemu-devel] [PATCH 01/18] smbios: Add a function to directly add an entry

2012-07-19 Thread minyard
From: Corey Minyard There was no way to directly add a table entry to the SMBIOS table, even though the BIOS supports this. So add a function to do this. This is in preparation for the IPMI handler adding it's SMBIOS table entry. Signed-off-by: Corey Minyard --- hw/smbios.c | 27 +++

[Qemu-devel] [PATCH 08/18] qemu-char: Close fd at end of file

2012-07-19 Thread minyard
From: Corey Minyard The chardev backends that used qemu_chr_open_fd did not get their file descriptors closed at end of file or when the chardev was closed. This could result in a file descriptor leak. Signed-off-by: Corey Minyard --- qemu-char.c | 31 +-- 1 files

[Qemu-devel] [PATCH 14/18] IPMI: Add a BT low-level interface

2012-07-19 Thread minyard
From: Corey Minyard This provides the simulation of the BT hardware interface for IPMI. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/ipmi_bt.c |

[Qemu-devel] [PATCH 11/18] Add a base IPMI interface

2012-07-19 Thread minyard
From: Corey Minyard Add the basic IPMI types and infrastructure to QEMU. Low-level interfaces and simulation interfaces will register with this; it's kind of the go-between to tie them together. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_

Re: [Qemu-devel] [RFC seabios PATCH] enumerate APIC IDs directly from CPUs

2012-07-19 Thread Eduardo Habkost
On Thu, Jul 19, 2012 at 11:28:54AM -0300, Eduardo Habkost wrote: > On Thu, Jul 19, 2012 at 12:58:46PM +0300, Gleb Natapov wrote: > > On Tue, Jul 17, 2012 at 06:56:30PM -0300, Eduardo Habkost wrote: > > > This patch is an attempt to fix the non-continguous-APIC-ID problem > > > without the > > > FW

[Qemu-devel] [PATCH 07/18] qemu-char: remove free of chr from win_stdio_close

2012-07-19 Thread minyard
From: Corey Minyard This will result in a double free on close, because it's freed in qemu_chr_delete() right after calling the close function. Signed-off-by: Corey Minyard --- qemu-char.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 15/18] IPMI: Add a local BMC simulation

2012-07-19 Thread minyard
From: Corey Minyard This provides a minimal local BMC, basically enough to comply with the spec and provide a complete watchdog timer (including a sensor, SDR, and event). Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 +

[Qemu-devel] [PATCH 09/18] qdev: Add a pre-firmware init capability

2012-07-19 Thread minyard
From: Corey Minyard Some devices may need to do some firmware-type initialization before the firmware itself is initialized. For instance, any device that adds SMBIOS table entries (like IPMI) will need to do that before the BIOS is initialized. So add a list of devices that get initialized bef

Re: [Qemu-devel] [PATCH 06/12] linux-aio: use event notifiers

2012-07-19 Thread Anthony Liguori
Paolo Bonzini writes: > Since linux-aio already uses an eventfd, converting it to use the > EventNotifier-based API simplifies the code even though it is not > meant to be portable. > Reviewed-by: Anthony Liguori Regards, Anthony Liguori > Signed-off-by: Paolo Bonzini > --- > linux-aio.c |

[Qemu-devel] [PATCH 13/18] IPMI: Add a KCS low-level interface

2012-07-19 Thread minyard
From: Corey Minyard This provides the simulation of the KCS hardware interface. Signed-off-by: Corey Minyard --- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/Makefile.objs |1 + hw/ipmi_kcs.c | 337

Re: [Qemu-devel] [PATCH 03/12] main-loop: use event notifiers

2012-07-19 Thread Anthony Liguori
Paolo Bonzini writes: Reviewed-by: Anthony Liguori Regards, Anthony Liguori > Signed-off-by: Paolo Bonzini > --- > Makefile.objs |4 +-- > main-loop.c | 106 > - > oslib-posix.c | 31 - > qemu-common.h |1

[Qemu-devel] [PATCH 17/18] IPMI: Add tests

2012-07-19 Thread minyard
From: Corey Minyard Test the KCS interface with a local BMC and a BT interface with an external BMC. Signed-off-by: Corey Minyard --- tests/Makefile|4 + tests/ipmi-test-bt.c | 440 + tests/ipmi-test-kcs.c | 295 +++

Re: [Qemu-devel] [PATCH 01/12] event_notifier: enable it to use pipes

2012-07-19 Thread Anthony Liguori
Paolo Bonzini writes: > This takes the eventfd emulation code from the main loop and adds it > to EventNotifier. When the EventNotifier is used for the main loop too, > we need this compatibility code. > > Without CONFIG_EVENTFD, event_notifier_get_fd is only usable for the > "read" side of the

[Qemu-devel] Third shot at adding IPMI to qemu

2012-07-19 Thread minyard
Ok, everything passes through checkpatch without an error now. I have added some tests to verify basic operation of the device, and I've hacked in some documentation, though I'm not sure if it's in the proper location, as I never got a response to my questions about it. I would have liked to add

[Qemu-devel] [PATCH 10/18] qom: release previous object when setting

2012-07-19 Thread minyard
From: Corey Minyard When setting an object, if you don't release the previous object that was there, it may become unusable. This change allows a chardev to be removed from one object's properties and added to another's. Signed-off-by: Corey Minyard Acked-by: Paolo Bonzini --- qom/object.c |

[Qemu-devel] [PATCH 06/18] qemu-char: Fix a race reporting opens and closes

2012-07-19 Thread minyard
From: Corey Minyard When an open event is reported, it is done through a bh. But close events are reported immediately. So if an open event is in the bh and a close occurs, an extraneous open happens, which can confuse a user. To fix this, this patch sets the "opened" flag immediately instead

Re: [Qemu-devel] [PATCH 2/2] vexpress: Add NOR1 Flash support

2012-07-19 Thread Igor Mitsyanko
On 07/19/2012 01:16 PM, jagan wrote: Yes, I have used same drive_get(IF_PFLASH, 0, 0) with two flashes. As these flashes are two different banks with individual bases address, I used the same. Was there any block allocation problem with this..will you please elaborate. I couldn't understand abo

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Laszlo Ersek
Hello Stefan, On 07/19/12 17:48, Stefan Hajnoczi wrote: > On Thu, Jul 19, 2012 at 4:41 PM, Paolo Bonzini wrote: >> Il 19/07/2012 17:40, Stefan Hajnoczi ha scritto: >>> On Sun, Jun 24, 2012 at 4:11 PM, Zhi Yong Wu wrote: > pull? >>> I have been basing work off this series. I'm sending a reba

Re: [Qemu-devel] [PATCH] audio: Make PC speaker audio card available by default

2012-07-19 Thread malc
On Thu, 19 Jul 2012, Jan Kiszka wrote: > Signed-off-by: Jan Kiszka > --- > configure |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > Applied, thanks. -- mailto:av1...@comtv.ru

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Zhi Yong Wu
net.h | 16 +-- net/dump.h |5 +- net/slirp.h|4 +- net/socket.h |5 +- net/tap.h | 10 +- net/vde.h |5 +- net.c | 494 +++

[Qemu-devel] [PATCH 1/2] usb attached scsi boot support

2012-07-19 Thread Gerd Hoffmann
This patch adds support for booting from UAS (usb attached scsi) devices. For now only usb 2.0 support is there. On usb 3.0 the UAS protocol uses streams, so changes will be required to make usb 3.0 devices fly once we have a xhci host controller driver. So far the driver has been tested on qemu

[Qemu-devel] [PATCH 2/2] lsi53c895a boot support

2012-07-19 Thread Gerd Hoffmann
This patch adds support for the lsi53c895a scsi host adapter, allowing seabios to boot from scsi disks and cdroms connected to the lsi scsi hba emulated by qemu. This driver was written by looking at the expectations of qemu's lsi emulation. I have no idea idea how close this is to work on real h

[Qemu-devel] [PATCH 0/2] scsi boot

2012-07-19 Thread Gerd Hoffmann
Hi, This patch series adds more scsi support to seabios. I've hacked up a UAS (usb attached scsi) driver, so you can boot from upcoming[1] uas devices. And while being at it I also added lsi53c895a support, allowing qemu boot from lsi without depending on the extboot hack. enjoy, Gerd PS:

Re: [Qemu-devel] Using QEMU for gcc testing

2012-07-19 Thread Michael Eager
On 07/19/2012 08:59 AM, Laurent Desnogues wrote: On Thu, Jul 19, 2012 at 5:29 PM, Michael Eager wrote: I'm interested in using QEMU to test gcc for a processor. This is a hard-metal target -- there is no operating system. Can anyone make suggestions on how to do this? You could look at how Q

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Paolo Bonzini
Il 19/07/2012 17:57, Zhi Yong Wu ha scritto: > qapi/opts-visitor.h | 31 > qapi/opts-visitor.c | 427 > +++ > qapi/Makefile.objs |2 +- > 3 files changed, 459 insertions(+), 1 deletions(-) > create mode 100644 qapi/opts-visitor.h > cr

Re: [Qemu-devel] Using QEMU for gcc testing

2012-07-19 Thread Laurent Desnogues
On Thu, Jul 19, 2012 at 5:29 PM, Michael Eager wrote: > I'm interested in using QEMU to test gcc for a processor. > This is a hard-metal target -- there is no operating system. > > Can anyone make suggestions on how to do this? You could look at how QEMU implements semihosting for ARM. And also h

[Qemu-devel] [PATCH] audio: Make PC speaker audio card available by default

2012-07-19 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 106209a..42adc8d 100755 --- a/configure +++ b/configure @@ -90,8 +90,8 @@ static="no" sparc_cpu="" cross_prefix="" audio_drv_list="" -audio_card_list=

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Zhi Yong Wu
qapi/opts-visitor.h | 31 qapi/opts-visitor.c | 427 +++ qapi/Makefile.objs |2 +- 3 files changed, 459 insertions(+), 1 deletions(-) create mode 100644 qapi/opts-visitor.h create mode 100644 qapi/opts-visitor.c >From the above log of

[Qemu-devel] [PATCH] cpus.c: Make all_cpu_threads_idle() static

2012-07-19 Thread Peter Maydell
Commit 946fb27c1 moved all the uses of all_cpu_threads_idle() into cpus.c. This means we can mark the function 'static' (again), if we shuffle it a bit earlier in the source file. Signed-off-by: Peter Maydell --- cpus.c| 52 ++-- qemu-com

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Paolo Bonzini
Il 19/07/2012 17:48, Zhi Yong Wu ha scritto: >>> >> I have been basing work off this series. I'm sending a rebased and >>> >> retested version which applies to current qemu.git/master. >> > >> > We need to coordinate between this series and Laszlo's QemuOpts conversion. > How to coordinate? Look a

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Stefan Hajnoczi
On Thu, Jul 19, 2012 at 4:41 PM, Paolo Bonzini wrote: > Il 19/07/2012 17:40, Stefan Hajnoczi ha scritto: >> On Sun, Jun 24, 2012 at 4:11 PM, Zhi Yong Wu wrote: >>> > pull? >> I have been basing work off this series. I'm sending a rebased and >> retested version which applies to current qemu.git/

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Zhi Yong Wu
On Thu, Jul 19, 2012 at 11:41 PM, Paolo Bonzini wrote: > Il 19/07/2012 17:40, Stefan Hajnoczi ha scritto: >> On Sun, Jun 24, 2012 at 4:11 PM, Zhi Yong Wu wrote: >>> > pull? >> I have been basing work off this series. I'm sending a rebased and >> retested version which applies to current qemu.git

Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory.

2012-07-19 Thread Anthony PERARD
On Thu, Jul 19, 2012 at 4:37 PM, Stefano Stabellini wrote: > > Anthony, can you write a patch to change the behavior in > qemu-xen-traditional too? Yes. -- Anthony PERARD

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Paolo Bonzini
Il 19/07/2012 17:40, Stefan Hajnoczi ha scritto: > On Sun, Jun 24, 2012 at 4:11 PM, Zhi Yong Wu wrote: >> > pull? > I have been basing work off this series. I'm sending a rebased and > retested version which applies to current qemu.git/master. We need to coordinate between this series and Laszlo

Re: [Qemu-devel] [PATCH v6 00/17] hub-based networking patchset

2012-07-19 Thread Stefan Hajnoczi
On Sun, Jun 24, 2012 at 4:11 PM, Zhi Yong Wu wrote: > pull? I have been basing work off this series. I'm sending a rebased and retested version which applies to current qemu.git/master. Stefan

Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory.

2012-07-19 Thread Stefano Stabellini
On Thu, 19 Jul 2012, Paolo Bonzini wrote: > Il 17/07/2012 20:06, Stefano Stabellini ha scritto: > > On Tue, 17 Jul 2012, Anthony PERARD wrote: > >> This patch add some calls to xen_modified_memory to notify Xen about > >> dirtybits > >> during migration. > >> > >> Signed-off-by: Anthony PERARD >

[Qemu-devel] Using QEMU for gcc testing

2012-07-19 Thread Michael Eager
I'm interested in using QEMU to test gcc for a processor. This is a hard-metal target -- there is no operating system. Can anyone make suggestions on how to do this? -- Michael Eagerea...@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077

Re: [Qemu-devel] [PATCH] qemu: add .exrc

2012-07-19 Thread Michael S. Tsirkin
On Thu, Jul 19, 2012 at 04:11:21PM +0100, Peter Maydell wrote: > On 19 July 2012 15:29, Michael S. Tsirkin wrote: > > I've been using this to get correct indenting with vim > > in qemu for a while, but it's a bit easier if we > > put the settings in the central place. > > Note that > > 1. you stil

Re: [Qemu-devel] Mapping Hugepage to Guest

2012-07-19 Thread Haines, Brent R
Thanks for the response. I should have said in the original post that the -mem-path and -mem-prealloc flags do not do what I need them to do. Using the -mem-path flag passes the hugepage to the guest but does not make the hugepage still available to the host. I want to be able to allocate hug

[Qemu-devel] [PULL] pci,msi,virtio

2012-07-19 Thread Michael S. Tsirkin
The following changes since commit 80aa796bf38b7ef21daa42673b4711510c450d8a: pci_bridge_dev: fix error path in pci_bridge_dev_initfn() (2012-06-11 22:55:13 +0300) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_anthony for you to fetch ch

Re: [Qemu-devel] [PATCH] qemu: add .exrc

2012-07-19 Thread Peter Maydell
On 19 July 2012 15:29, Michael S. Tsirkin wrote: > I've been using this to get correct indenting with vim > in qemu for a while, but it's a bit easier if we > put the settings in the central place. > Note that > 1. you still need to enable 'exrc' and 'secure' >options in your vimrc for these s

Re: [Qemu-devel] [PATCH] msi/msix: added API to set MSI message address and data

2012-07-19 Thread Michael S. Tsirkin
On Fri, Jul 20, 2012 at 12:50:26AM +1000, Alexey Kardashevskiy wrote: > On 20/07/12 00:43, Michael S. Tsirkin wrote: > > On Fri, Jul 20, 2012 at 12:24:05AM +1000, Alexey Kardashevskiy wrote: > >> One comment below. > >> > >> > >> On 19/07/12 19:27, Michael S. Tsirkin wrote: > >>> On Thu, Jul 19,

Re: [Qemu-devel] [PATCH] msi/msix: added API to set MSI message address and data

2012-07-19 Thread Alexey Kardashevskiy
On 20/07/12 00:43, Michael S. Tsirkin wrote: > On Fri, Jul 20, 2012 at 12:24:05AM +1000, Alexey Kardashevskiy wrote: >> One comment below. >> >> >> On 19/07/12 19:27, Michael S. Tsirkin wrote: >>> On Thu, Jul 19, 2012 at 10:32:40AM +1000, Alexey Kardashevskiy >>> wrote: On 19/07/12 01:23, Mi

[Qemu-devel] [PATCHv2] qemu: add .exrc

2012-07-19 Thread Michael S. Tsirkin
I've been using this to get correct indenting with vim in qemu for a while, but it's a bit easier if we put the settings in the central place. Note that 1. you still need to enable 'exrc' and 'secure' options in your vimrc for these settings to take effect. 2. you can create a .vimrc file if 'ex

Re: [Qemu-devel] [PATCH] msi/msix: added API to set MSI message address and data

2012-07-19 Thread Michael S. Tsirkin
On Fri, Jul 20, 2012 at 12:24:05AM +1000, Alexey Kardashevskiy wrote: > One comment below. > > > On 19/07/12 19:27, Michael S. Tsirkin wrote: > > On Thu, Jul 19, 2012 at 10:32:40AM +1000, Alexey Kardashevskiy wrote: > >> On 19/07/12 01:23, Michael S. Tsirkin wrote: > >>> On Wed, Jul 18, 2012 at 1

Re: [Qemu-devel] [PATCH v2 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data

2012-07-19 Thread Peter Maydell
On 19 July 2012 15:33, Jing Huang wrote: > On Mon, Jul 16, 2012 at 2:45 PM, Peter Maydell > wrote: >> On 16 July 2012 11:15, Jing Huang wrote: >>> This patch excludes SO_TIMESTAMP cmsg_type from unsuppoted ancillary data. >> >> "unsupported". >> >>> >>> Signed-off-by: Jing Huang >>> --- >>> l

Re: [Qemu-devel] [PATCH v2 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data

2012-07-19 Thread Jing Huang
On Mon, Jul 16, 2012 at 2:45 PM, Peter Maydell wrote: > On 16 July 2012 11:15, Jing Huang wrote: >> This patch excludes SO_TIMESTAMP cmsg_type from unsuppoted ancillary data. > > "unsupported". > >> >> Signed-off-by: Jing Huang >> --- >> linux-user/syscall.c |4 +++- >> 1 files changed, 3 i

Re: [Qemu-devel] Keeping a secondary CPU in reset

2012-07-19 Thread Andreas Färber
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Thierry, Am 17.07.2012 17:46, schrieb Thierry Reding: > I've been toying around with adding NVIDIA Tegra support to QEMU. > While adding SMP support I came across a problem: on Tegra, the > secondary CPU is kept in reset by the clock-and-reset cont

Re: [Qemu-devel] passing interrupts from QEMU to KVM

2012-07-19 Thread Alexander Graf
On 07/19/2012 04:16 PM, Peter Maydell wrote: On 19 July 2012 15:13, Alexander Graf wrote: On 07/19/2012 02:00 PM, Peter Maydell wrote: On 19 July 2012 12:43, Avi Kivity wrote: Let's make them even more similar, by removing !in_kernel_irqchip. Mmm, I do rather want to just mandate use of the

[Qemu-devel] [PATCH] qemu: add .exrc

2012-07-19 Thread Michael S. Tsirkin
I've been using this to get correct indenting with vim in qemu for a while, but it's a bit easier if we put the settings in the central place. Note that 1. you still need to enable 'exrc' and 'secure' options in your vimrc for these settings to take effect. 2. you can create a .vimrc file if 'ex

Re: [Qemu-devel] [RFC seabios PATCH] enumerate APIC IDs directly from CPUs

2012-07-19 Thread Eduardo Habkost
On Thu, Jul 19, 2012 at 12:58:46PM +0300, Gleb Natapov wrote: > On Tue, Jul 17, 2012 at 06:56:30PM -0300, Eduardo Habkost wrote: > > This patch is an attempt to fix the non-continguous-APIC-ID problem without > > the > > FW_CFG_LAPIC_INFO approach I have sent proposed last week. > > > > Basically

Re: [Qemu-devel] [PATCH 3/4] exec, memory: Call to xen_modified_memory.

2012-07-19 Thread Anthony PERARD
On 19/07/12 12:50, Avi Kivity wrote: On 07/19/2012 02:41 PM, Anthony PERARD wrote: On 17/07/12 19:36, Stefano Stabellini wrote: On Tue, 17 Jul 2012, Avi Kivity wrote: How about pushing the call into cpu_physical_memory_set_dirty_flags()? Would that reduce the number of call sites? Pushing th

Re: [Qemu-devel] [PATCH] msi/msix: added API to set MSI message address and data

2012-07-19 Thread Alexey Kardashevskiy
One comment below. On 19/07/12 19:27, Michael S. Tsirkin wrote: > On Thu, Jul 19, 2012 at 10:32:40AM +1000, Alexey Kardashevskiy wrote: >> On 19/07/12 01:23, Michael S. Tsirkin wrote: >>> On Wed, Jul 18, 2012 at 11:17:12PM +1000, Alexey Kardashevskiy wrote: On 18/07/12 22:43, Michael S. Tsir

[Qemu-devel] qemu 1.1.0 slow as hell booting ?

2012-07-19 Thread Luigi Rizzo
hi, while playing with various qemu versions i noticed that qemu-devel now in FreeBSD ports (1.1.0) is slow as hell when booting FreeBSD (take for instance the netmap image at http://info.iet.unipi.it/~luigi/netmap/20120608-netmap-picobsd-head-amd64.bin while 0.11.x and 1.1.1 and 1.0.1 seem to wo

Re: [Qemu-devel] passing interrupts from QEMU to KVM

2012-07-19 Thread Peter Maydell
On 19 July 2012 15:13, Alexander Graf wrote: > On 07/19/2012 02:00 PM, Peter Maydell wrote: >> On 19 July 2012 12:43, Avi Kivity wrote: >>> Let's make them even more similar, by removing !in_kernel_irqchip. >> >> Mmm, I do rather want to just mandate use of the VGIC... >> (somebody will probably

Re: [Qemu-devel] [PATCH v2 2/2] pci: Add INTx routing notifier

2012-07-19 Thread Michael S. Tsirkin
On Mon, Jul 02, 2012 at 02:38:47PM +0200, Jan Kiszka wrote: > This per-device notifier shall be triggered by any interrupt router > along the path of a device's legacy interrupt signal on routing changes. > For simplicity reasons and as this is a slow path anyway, no further > details on the routin

Re: [Qemu-devel] passing interrupts from QEMU to KVM

2012-07-19 Thread Alexander Graf
On 07/19/2012 02:00 PM, Peter Maydell wrote: On 19 July 2012 12:43, Avi Kivity wrote: On 07/19/2012 02:14 PM, Peter Maydell wrote: Basically I'm not sure why there's all this variety here, or why x86 does things differently for in-kernel irqchip versus not -- I would have expected that the onl

[Qemu-devel] [PATCH] qemu-char: (Re-)connect for tcp_chr_write() unconnected writing

2012-07-19 Thread Lei Li
tcp_chr_write() did not deal with writing to an unconnected connection and return the original length of the data, it's not right and would cause false writing. So (re-)connect it and return 0 for this situation. Signed-off-by: Lei Li --- qemu-char.c |7 +-- 1 files changed, 5 insertions

Re: [Qemu-devel] [PATCH v2 1/2] pci: Add pci_device_route_intx_to_irq

2012-07-19 Thread Michael S. Tsirkin
On Mon, Jul 02, 2012 at 02:38:46PM +0200, Jan Kiszka wrote: > Add a PCI IRQ path discovery function that walks from a given device to > the host bridge, returning the mode (enabled/inverted/disabled) and the > IRQ number that is reported to the attached interrupt controller. For > this purpose, ano

Re: [Qemu-devel] [PATCH 5/6] add-cow: support snapshot_blkdev

2012-07-19 Thread Luiz Capitulino
On Thu, 19 Jul 2012 10:17:10 +0200 Kevin Wolf wrote: > Am 19.07.2012 04:20, schrieb Dong Xu Wang: > > On Thu, Jun 14, 2012 at 7:33 PM, Kevin Wolf wrote: > >> Am 14.06.2012 13:18, schrieb Paolo Bonzini: > >>> Il 14/06/2012 12:59, Kevin Wolf ha scritto: > Am 13.06.2012 16:36, schrieb Dong Xu

  1   2   >