Re: [Qemu-devel] qemu - SCSI disk "Device Model", "Serial Number", and "Firmware Version"?

2011-06-07 Thread Markus Armbruster
Dave Seddon writes: > Greetings, > > Thanks for all the responses. > > Overall it sounds like supporting this is capability would be fairly > easy. However, Sadly for me it sounds like this won't be useful to > people generally unless they are trying to virtulize something that > relies on these

[Qemu-devel] Unsubscription Confirmation

2011-06-07 Thread RealEstateMalaysian.com
Thank you for subscribing. You have now unsubscribed and no more messages will be sent.

Re: [Qemu-devel] [PULL] collection of small VirtFS patches.

2011-06-07 Thread Venkateswararao Jujjuri
Anthony, can you please pull this? Thanks, JV On 06/01/2011 10:33 AM, Venkateswararao Jujjuri wrote: The following changes since commit 578c7b2ca8ee9e97fa8693b1a83d517e8e3f962e: Juha Riihim?ki (1): audio: fix integer overflow expression are available in the git repository at: git

Re: [Qemu-devel] [PATCH] Command line support for altering the log file location

2011-06-07 Thread Matthew Fernandez
Add command line support for logging to a location other than /tmp/qemu.log. With logging enabled (command line option -d), the log is written to the hard-coded path /tmp/qemu.log. This patch adds support for writing the log to a different location by passing the -D option. Signed-off-by: Matthew

[Qemu-devel] arm1136 CPU emulation won't run current kernels?

2011-06-07 Thread Rob Landley
QEMU's -cpu arm1136 emulation stopped working in the 2.6.35 and later kernels, now QEMU dies early in the kernel boot with: qemu: fatal: Unimplemented cp15 register write (c13, c0, {0, 3}) This is due to this change to the Linux kernel: commit f159f4ed55bb0fa5470800641e03a13a7e0eae6e Author: T

[Qemu-devel] [RFC v3 11/11] prep: Add pc87312 Super I/O emulation

2011-06-07 Thread Andreas Färber
Signed-off-by: Hervé Poussineau Create all devices ahead of time and enable/disable instead. Check the qdev properties for whether a change is necessary. Signed-off-by: Andreas Färber --- Makefile.objs |1 + default-configs/ppc-softmmu.mak |2 + hw/pc87312.c

[Qemu-devel] [RFC v3 10/11] qdev: Add helpers for reading properties

2011-06-07 Thread Andreas Färber
This effectively turns qdev properties from write-only to read/write, allowing to inspect a private DeviceState. As a start, add qdev_prop_get_uint32(). Signed-off-by: Andreas Färber --- hw/qdev-properties.c | 23 +++ hw/qdev.h|2 ++ 2 files changed, 25 ins

Re: [Qemu-devel] qemu - SCSI disk "Device Model", "Serial Number", and "Firmware Version"?

2011-06-07 Thread Dave Seddon
Greetings, Thanks for all the responses. Overall it sounds like supporting this is capability would be fairly easy. However, Sadly for me it sounds like this won't be useful to people generally unless they are trying to virtulize something that relies on these codes. Answers to: --

Re: [Qemu-devel] [RFC v2 00/10] ISA reconfigurability v2

2011-06-07 Thread Andreas Färber
Am 07.06.2011 um 17:16 schrieb Gerd Hoffmann: On 06/07/11 17:02, Andreas Färber wrote: As suggested by Gerd, I've introduced a set_state() callback at ISA level and implemented it as required for pc87312. This approach simplifies some things but currently has the drawback that the devices

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-06-07 Thread moonman
> It's only user-mode that doesn't work, I think You are correct in saying that only user mode does not work. I did install windows 98 in qemu VM and it worked fine (aside from the fact that it was slow :)) -- You received this bug notification because you are a member of qemu- devel-ml, which i

Re: [Qemu-devel] [PATCH 6/9] net: Improve layout of 'info network'

2011-06-07 Thread Cole Robinson
On 06/07/2011 03:55 PM, Anthony Liguori wrote: > On 06/07/2011 11:45 AM, Jan Kiszka wrote: >> Improve the layout when listing non-vlan clients via 'info network'. The >> result looks like this: >> >> (qemu) info network >> Devices not on any VLAN: >>orphan: net=10.0.2.0, restricted=n >>virt

Re: [Qemu-devel] [PATCH v3] Add an isa device for SGA

2011-06-07 Thread Glauber Costa
On 06/07/2011 04:17 PM, Anthony Liguori wrote: On 05/16/2011 01:45 PM, Glauber Costa wrote: This patch adds a dummy legacy ISA device whose responsibility is to deploy sgabios, an option rom for a serial graphics adapter. The proposal is that this device is always-on when -nographics, but can ot

Re: [Qemu-devel] [PATCH 6/9] net: Improve layout of 'info network'

2011-06-07 Thread Anthony Liguori
On 06/07/2011 11:45 AM, Jan Kiszka wrote: Improve the layout when listing non-vlan clients via 'info network'. The result looks like this: (qemu) info network Devices not on any VLAN: orphan: net=10.0.2.0, restricted=n virtio-net-pci.0: model=virtio-net-pci,macaddr=52:54:00:12:34:56 \

Re: [Qemu-devel] [PATCH v2][ 05/21] qapi: add qapi-types.py code generator

2011-06-07 Thread Anthony Liguori
On 06/07/2011 02:12 PM, Luiz Capitulino wrote: On Tue, 07 Jun 2011 14:06:53 -0500 Anthony Liguori wrote: On 06/03/2011 05:33 PM, Michael Roth wrote: This is the code generator for qapi types. It will generation the following files: $(prefix)qapi-types.h - C types corresponding to types d

Re: [Qemu-devel] [PATCH v1][ 01/14] QError: Introduce qerror_format_desc()

2011-06-07 Thread Anthony Liguori
On 06/01/2011 12:14 PM, Michael Roth wrote: From: Luiz Capitulino Refactor non-QError-specific bits out of qerror_human() into general function that can be used by the error_get_pretty() analogue in the new error-propagation framework. Signed-off-by: Luiz Capitulino Signed-off-by: Michael Roth

Re: [Qemu-devel] [PATCH v3] Add an isa device for SGA

2011-06-07 Thread Anthony Liguori
On 05/16/2011 01:45 PM, Glauber Costa wrote: This patch adds a dummy legacy ISA device whose responsibility is to deploy sgabios, an option rom for a serial graphics adapter. The proposal is that this device is always-on when -nographics, but can otherwise be enable in any setup when -device sga

Re: [Qemu-devel] [PATCH v2][ 05/21] qapi: add qapi-types.py code generator

2011-06-07 Thread Luiz Capitulino
On Tue, 07 Jun 2011 14:06:53 -0500 Anthony Liguori wrote: > On 06/03/2011 05:33 PM, Michael Roth wrote: > > This is the code generator for qapi types. It will generation the > > following files: > > > >$(prefix)qapi-types.h - C types corresponding to types defined in > >

Re: [Qemu-devel] [PATCH v4][ 1/7] guest agent: worker thread class

2011-06-07 Thread Anthony Liguori
On 06/03/2011 05:48 PM, Michael Roth wrote: Signed-off-by: Michael Roth --- qga/guest-agent-worker.c | 179 ++ 1 files changed, 179 insertions(+), 0 deletions(-) create mode 100644 qga/guest-agent-worker.c diff --git a/qga/guest-agent-worker.c b/

Re: [Qemu-devel] [PATCH v2 0/2] qdev-device-use.txt update & trivial bonus fixes

2011-06-07 Thread Anthony Liguori
On 06/07/2011 03:34 AM, Markus Armbruster wrote: Bunched together with trivial fixes to save me the trouble of updating the docs again when they go in. v1 has been on the list for three weeks. That's a long time for a documentation fix. Please apply. Applied all. Thanks. Regards, Anthony

Re: [Qemu-devel] [PATCH v2][ 12/21] qapi: add QAPI dealloc visiter

2011-06-07 Thread Anthony Liguori
On 06/03/2011 05:33 PM, Michael Roth wrote: Type of Visiter class that can be passed into a qapi-generated C type's visiter function to free() any heap-allocated data types. Signed-off-by: Michael Roth --- qapi/qapi-dealloc-visiter.c | 127 +++ qapi/qa

Re: [Qemu-devel] [PATCH v2][ 17/21] qapi: add test-visiter, tests for gen. visiter code

2011-06-07 Thread Anthony Liguori
On 06/03/2011 05:33 PM, Michael Roth wrote: Signed-off-by: Michael Roth --- test-visiter.c | 214 1 files changed, 214 insertions(+), 0 deletions(-) create mode 100644 test-visiter.c diff --git a/test-visiter.c b/test-visiter.c new f

Re: [Qemu-devel] [PATCH v2][ 05/21] qapi: add qapi-types.py code generator

2011-06-07 Thread Anthony Liguori
On 06/03/2011 05:33 PM, Michael Roth wrote: This is the code generator for qapi types. It will generation the following files: $(prefix)qapi-types.h - C types corresponding to types defined in the schema you pass in $(prefix)qapi-types.c - Cleanup functions for t

[Qemu-devel] [PATCH] hw/usb-ohci.c: Ignore writes to HcPeriodCurrentED register

2011-06-07 Thread Peter Maydell
HcPeriodCurrentED is read-only, but Linux writes to it anyway; silently ignore this rather than printing a warning message. (Specifically, drivers/usb/host/ohci-hub.c:ohci_rh_resume() writes a 0, in at least kernels 2.6.25 through 2.6.39.) Signed-off-by: Peter Maydell --- LXR reference for your

Re: [Qemu-devel] [PATCH v2][ 04/21] qapi: add ordereddict/qapi.py helper libraries

2011-06-07 Thread Anthony Liguori
On 06/03/2011 05:33 PM, Michael Roth wrote: Signed-off-by: Michael Roth --- scripts/ordereddict.py | 128 ++ scripts/qapi.py| 181 2 files changed, 309 insertions(+), 0 deletions(-) create mode 100644

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Luiz Capitulino
On Tue, 07 Jun 2011 13:43:27 -0500 Anthony Liguori wrote: > On 06/07/2011 12:43 PM, Luiz Capitulino wrote: > > On Tue, 07 Jun 2011 11:32:14 -0500 > > Anthony Liguori wrote: > > > >> Sorry, I meant to ask, what's the difference between "low level" and > >> "unknown". > > > > "low level" is EIO, "

[Qemu-devel] [PATCH] hw/usb-ohci.c: Implement remote wakeup

2011-06-07 Thread Peter Maydell
Implement the wakeup callback in the OHCI USBPortOps, so that when a downstream device wakes up it correctly causes the OHCI controller to come out of suspend. Signed-off-by: Peter Maydell --- This patch fixes USB keyboard support on (the not-yet-upstream) OMAP3 for me -- without it Linux puts th

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Anthony Liguori
On 06/07/2011 12:43 PM, Luiz Capitulino wrote: On Tue, 07 Jun 2011 11:32:14 -0500 Anthony Liguori wrote: Sorry, I meant to ask, what's the difference between "low level" and "unknown". "low level" is EIO, "unknown" is everything else (EINVAL, EPIPE, ...). How can you document this to the u

Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h

2011-06-07 Thread malc
On Tue, 7 Jun 2011, Richard Henderson wrote: > On 06/06/2011 04:07 PM, malc wrote: > > Depends on how bswap_16 is defined. If it is __builtin_bswap16 > > then 4.5.0 and 4.6.0 generate byte reversed loads, and previous > > versions lack that builtin, so i don't think this generic code > > should go

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Luiz Capitulino
On Tue, 07 Jun 2011 11:32:14 -0500 Anthony Liguori wrote: > On 06/07/2011 10:54 AM, Luiz Capitulino wrote: > > On Tue, 07 Jun 2011 10:39:45 -0500 > > Anthony Liguori wrote: > > > >> On 06/07/2011 09:46 AM, Luiz Capitulino wrote: > >>> On Mon, 06 Jun 2011 08:08:51 -0500 > >>> Anthony Liguori wr

Re: [Qemu-devel] [PATCH] Buildfix: fix libcacard build with -m32 on 64bit machine

2011-06-07 Thread Stefan Berger
On 06/07/2011 10:20 AM, Andreas Färber wrote: Am 07.06.2011 um 16:06 schrieb Stefan Berger: On 05/26/2011 02:26 PM, Alon Levy wrote: On Thu, May 26, 2011 at 01:56:54PM -0400, Stefan Berger wrote: When configuring with --extra-cflags="-m32" on a 64bit machine the following error appears during

[Qemu-devel] [PATCH] msi: Fix copy&paste mistake in msi_uninit

2011-06-07 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- hw/msi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/msi.c b/hw/msi.c index b087fe5..e8c5607 100644 --- a/hw/msi.c +++ b/hw/msi.c @@ -172,7 +172,7 @@ void msi_uninit(struct PCIDevice *dev) } flags = pci_get_word(dev->config

[Qemu-devel] [PATCH 0/9] Various net and slirp fixes & enhancements

2011-06-07 Thread Jan Kiszka
This is mostly a reposting of what I've already sent as individual patches. The only differences are the new patch 7 and the reworked patch 8 (reused of existing net client type names). The network subsystem maintenance looks vacant, so I'm unsure who to address directly. CC: Anthony Liguori CC:

[Qemu-devel] [PATCH 5/9] slirp: Put forked exec into separate process group

2011-06-07 Thread Jan Kiszka
Recent smb daemons tend to terminate themselves via a process group SIGTERM. If the daemon is still in qemu's group by that time, qemu will die as well. Avoid this by always pushing fork_exec processes into a group of their own, not just (unused) type 2 execs. Signed-off-by: Jan Kiszka --- slirp

Re: [Qemu-devel] Qcow2

2011-06-07 Thread arun.sasi1
Hello Stephen, Any update on this... what could be the reason... If I am not able to start VM and if I add two virtual hard disk and one virtual hard disk is more than 500GB. Virtual harddisk type is virtio. Created by using qcow2 Thanks, -Arun -Original Message- From: Arun Sasi V (WI01

[Qemu-devel] [PATCH 3/9] slirp: Strictly associate DHCP/BOOTP and TFTP with virtual host

2011-06-07 Thread Jan Kiszka
Instead of accepting every DHCP/BOOTP and TFTP packet, only invoke the built-in servers if the target is the virtual host. Signed-off-by: Jan Kiszka --- slirp/udp.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/slirp/udp.c b/slirp/udp.c index f1a9a10..cefd5

[Qemu-devel] [PATCH 7/9] net: Refactor net_client_types

2011-06-07 Thread Jan Kiszka
Position entries of net_client_types according to the corresponding values of NET_CLIENT_TYPE_*. The array size is now defined by NET_CLIENT_TYPE_MAX. This will allow to obtain entries based on type value in later patches. At this chance rename NET_CLIENT_TYPE_SLIRP to NET_CLIENT_TYPE_USER for the

[Qemu-devel] [PATCH 9/9] net: Consistently use qemu_macaddr_default_if_unset

2011-06-07 Thread Jan Kiszka
Drop the open-coded MAC assignment from net_init_nic and replace it with standard qemu_macaddr_default_if_unset which is also used by qdev. That avoid creating colliding MACs when instantiating NICs via different mechanisms. This change requires to store the MAC as MACAddr in NICInfo, and the rema

Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h

2011-06-07 Thread Richard Henderson
On 06/06/2011 04:07 PM, malc wrote: > Depends on how bswap_16 is defined. If it is __builtin_bswap16 > then 4.5.0 and 4.6.0 generate byte reversed loads, and previous > versions lack that builtin, so i don't think this generic code > should go in. It would continue to be defined as-is, without dir

[Qemu-devel] [PATCH 2/9] slirp: Canonicalize restrict syntax

2011-06-07 Thread Jan Kiszka
All other boolean arguments accept on|off - except for slirp's restrict. Fix that while still accepting the formerly allowed yes|y|no|n, but reject everything else. This avoids accidentally allowing external connections because syntax errors were so far interpreted as 'restrict=no'. CC: Gleb Natap

[Qemu-devel] [PATCH 4/9] slirp: Replace m_freem with m_free

2011-06-07 Thread Jan Kiszka
Remove this pointless wrapping. Signed-off-by: Jan Kiszka --- slirp/ip_icmp.c |6 +++--- slirp/ip_input.c |8 slirp/ip_output.c |4 ++-- slirp/mbuf.h |3 --- slirp/tcp_input.c | 10 +- slirp/tcp_subr.c |2 +- slirp/udp.c |2 +- 7 files ch

[Qemu-devel] [PATCH 8/9] net: Dump client type 'info network'

2011-06-07 Thread Jan Kiszka
Include the client type name into the output of 'info network'. The result looks like this: (qemu) info network VLAN 0 devices: rtl8139.0: type=nic,model=rtl8139,macaddr=52:54:00:12:34:57 Devices not on any VLAN: virtio-net-pci.0: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56 \ ne

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Anthony Liguori
On 06/07/2011 10:41 AM, Markus Armbruster wrote: Luiz Capitulino writes: On Mon, 06 Jun 2011 08:08:51 -0500 Anthony Liguori wrote: On 06/06/2011 04:25 AM, Kevin Wolf wrote: Am 02.06.2011 20:09, schrieb Luiz Capitulino: I'm ok with either way. But in case you meant the second one, I guess

[Qemu-devel] [PATCH 6/9] net: Improve layout of 'info network'

2011-06-07 Thread Jan Kiszka
Improve the layout when listing non-vlan clients via 'info network'. The result looks like this: (qemu) info network Devices not on any VLAN: orphan: net=10.0.2.0, restricted=n virtio-net-pci.0: model=virtio-net-pci,macaddr=52:54:00:12:34:56 \ network2: fd=5 e1000.0: model=e1000,macaddr=5

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Anthony Liguori
On 06/07/2011 10:54 AM, Luiz Capitulino wrote: On Tue, 07 Jun 2011 10:39:45 -0500 Anthony Liguori wrote: On 06/07/2011 09:46 AM, Luiz Capitulino wrote: On Mon, 06 Jun 2011 08:08:51 -0500 Anthony Liguori wrote: On 06/06/2011 04:25 AM, Kevin Wolf wrote: Am 02.06.2011 20:09, schrieb Luiz Ca

[Qemu-devel] [PATCH 1/9] slirp: Fix restricted mode

2011-06-07 Thread Jan Kiszka
This aligns the code to what the documentation claims: Allow everything but requests that would have to be routed outside of the virtual LAN. So we need to drop the unneeded IP-level filter, allow TFTP requests, and add the missing protocol-level filter to ICMP. CC: Gleb Natapov Signed-off-by: J

Re: [Qemu-devel] [PATCH v3 1/2] Generalize -machine command line option

2011-06-07 Thread Jan Kiszka
On 2011-05-25 09:03, Jan Kiszka wrote: > From: Jan Kiszka > > -machine somehow suggests that it selects the machine, but it doesn't. > Fix that before this command is set in stone. > > Actually, -machine should supersede -M and allow to introduce arbitrary > per-machine options to the command li

Re: [Qemu-devel] [PATCH] Fix build on FreeBSD

2011-06-07 Thread Alexandre Raymond
Hi Nathan, On Sun, Jun 5, 2011 at 10:03 AM, Nathan Whitehorn wrote: > On 06/02/11 10:01, Andreas Färber wrote: >> >> Am 31.05.2011 um 16:57 schrieb Nathan Whitehorn: >> >>> Add some includes required to build qemu on FreeBSD. >> >> Missing Sob. > > Oops, I'll resubmit. > >>> --- >>> bsd-user/sysc

Re: [Qemu-devel] [PATCH 2/2] ioapic: Implement polarity

2011-06-07 Thread Jan Kiszka
On 2011-05-15 13:07, Jan Kiszka wrote: > From: Jan Kiszka > > If the polarity bit is set in a redirection table entry, the input level > simply has to inverted as it is low active in this case. Ping for this and http://thread.gmane.org/gmane.comp.emulators.qemu/102459. Maybe even trivial, so CC'

Re: [Qemu-devel] [RFC v2 00/10] ISA reconfigurability v2

2011-06-07 Thread Gerd Hoffmann
On 06/07/11 17:02, Andreas Färber wrote: Hi, As suggested by Gerd, I've introduced a set_state() callback at ISA level and implemented it as required for pc87312. This approach simplifies some things but currently has the drawback that the devices are disabled and potentially re-enabled for eac

Re: [Qemu-devel] [PATCH] virtio: Move virtio-pci to hw library

2011-06-07 Thread Jan Kiszka
On 2011-05-15 00:44, Aurelien Jarno wrote: > On Tue, Apr 26, 2011 at 01:32:08PM +0200, Jan Kiszka wrote: >> This module has no target dependencies (except for target_phys_addr_t >> size) and can thus be built as part of libhw. >> >> Signed-off-by: Jan Kiszka >> --- >> Makefile.objs |1 + >>

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Luiz Capitulino
On Tue, 07 Jun 2011 10:39:45 -0500 Anthony Liguori wrote: > On 06/07/2011 09:46 AM, Luiz Capitulino wrote: > > On Mon, 06 Jun 2011 08:08:51 -0500 > > Anthony Liguori wrote: > > > >> On 06/06/2011 04:25 AM, Kevin Wolf wrote: > >>> Am 02.06.2011 20:09, schrieb Luiz Capitulino: > >> I'm ok with

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Markus Armbruster
Luiz Capitulino writes: > On Mon, 06 Jun 2011 08:08:51 -0500 > Anthony Liguori wrote: > >> On 06/06/2011 04:25 AM, Kevin Wolf wrote: >> > Am 02.06.2011 20:09, schrieb Luiz Capitulino: >> I'm ok with either way. But in case you meant the second one, I guess >> we should make "reason" a

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Anthony Liguori
On 06/07/2011 09:46 AM, Luiz Capitulino wrote: On Mon, 06 Jun 2011 08:08:51 -0500 Anthony Liguori wrote: On 06/06/2011 04:25 AM, Kevin Wolf wrote: Am 02.06.2011 20:09, schrieb Luiz Capitulino: I'm ok with either way. But in case you meant the second one, I guess we should make "reason" a dic

[Qemu-devel] [RFC v2 10/10] prep: Add pc87312 Super I/O emulation

2011-06-07 Thread Andreas Färber
Signed-off-by: Hervé Poussineau Create all devices ahead of time and enable/disable instead. Signed-off-by: Andreas Färber --- Makefile.objs |1 + default-configs/ppc-softmmu.mak |2 + hw/pc87312.c| 438 +++ 3 f

Re: [Qemu-devel] [PATCH v2 0/2] qdev-device-use.txt update & trivial bonus fixes

2011-06-07 Thread Gerd Hoffmann
On 06/07/11 10:34, Markus Armbruster wrote: Bunched together with trivial fixes to save me the trouble of updating the docs again when they go in. v1 has been on the list for three weeks. That's a long time for a documentation fix. Please apply. Acked-by: Gerd Hoffmann cheers, Gerd

[Qemu-devel] [RFC v2 04/10] parallel: Implement ISA set_state callback

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/parallel.c | 67 ++-- 1 files changed, 45 insertions(+), 22 deletions(-) diff --git a/hw/parallel.c b/hw/parallel.c index cc853a5..db5bb57 100644 --- a/hw/parallel.c +++ b/hw/parallel.c @@ -446,6 +446,49 @

[Qemu-devel] [RFC v2 07/10] fdc: Implement ISA set_state() callback

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/fdc.c | 42 ++ 1 files changed, 30 insertions(+), 12 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index f4e3e0d..6d8914f 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -1894,25 +1894,42 @@ static int fdctrl_init_common(FDCt

[Qemu-devel] [PATCH v2 06/10] fdc: Parametrize ISA base, IRQ and DMA

2011-06-07 Thread Andreas Färber
From: Hervé Poussineau Keep the PC values as defaults but allow to override them for PReP. Signed-off-by: Hervé Poussineau Cc: Markus Armbruster Signed-off-by: Andreas Färber --- hw/fdc.c | 27 +++ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/hw/

[Qemu-devel] [RFC v2 05/10] serial: Implement ISA set_state() callback

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/serial.c | 25 + 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/hw/serial.c b/hw/serial.c index 0ee61dd..ec1e0a0 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -752,6 +752,25 @@ void serial_set_frequency(SerialState *s

[Qemu-devel] [RFC v2 00/10] ISA reconfigurability v2

2011-06-07 Thread Andreas Färber
Hi, As suggested by Gerd, I've introduced a set_state() callback at ISA level and implemented it as required for pc87312. This approach simplifies some things but currently has the drawback that the devices are disabled and potentially re-enabled for each register write. This is because in the pr

[Qemu-devel] [RFC v2 08/10] ide: Allow to discard I/O ports

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ide/core.c |8 hw/ide/internal.h |1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 45410e8..c3b82de 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -1760,6 +1760,14 @@ void ide_init_

[Qemu-devel] [RFC v2 03/10] isa: Allow to un-associate an IRQ

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa-bus.c | 14 ++ hw/isa.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 68fd3db..e10e9a6 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -80,6 +80,20 @@ void isa_init_irq(ISADevi

[Qemu-devel] [RFC v2 09/10] ide: Implement ISA set_state() callback

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ide/isa.c | 27 +++ 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 4ac7453..e6ee263 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -62,15 +62,33 @@ static const VMStateDescription vm

[Qemu-devel] [RFC v2 01/10] isa: Provide set_state callback

2011-06-07 Thread Andreas Färber
Cc: Gerd Hoffmann Signed-off-by: Andreas Färber --- hw/isa-bus.c |9 + hw/isa.h |3 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 2765543..6f296bd 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -156,6 +156,15 @@ ISADevi

[Qemu-devel] [RFC v2 02/10] isa: Allow to un-assign I/O ports

2011-06-07 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa-bus.c | 14 ++ hw/isa.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 6f296bd..68fd3db 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -105,6 +105,20 @@ void isa_init_ioport(IS

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-07 Thread Luiz Capitulino
On Mon, 06 Jun 2011 08:08:51 -0500 Anthony Liguori wrote: > On 06/06/2011 04:25 AM, Kevin Wolf wrote: > > Am 02.06.2011 20:09, schrieb Luiz Capitulino: > I'm ok with either way. But in case you meant the second one, I guess > we should make "reason" a dictionary so that we can group rel

Re: [Qemu-devel] [PATCH] Buildfix: fix libcacard build with -m32 on 64bit machine

2011-06-07 Thread Andreas Färber
Am 07.06.2011 um 16:06 schrieb Stefan Berger: On 05/26/2011 02:26 PM, Alon Levy wrote: On Thu, May 26, 2011 at 01:56:54PM -0400, Stefan Berger wrote: When configuring with --extra-cflags="-m32" on a 64bit machine the following error appears during compilation: Thanks for the fix. Anybody els

[Qemu-devel] [PATCH 0/3] block: Avoid direct AIO callback

2011-06-07 Thread Kevin Wolf
This series fixes some cases of block drivers calling AIO callbacks too early. It fixes the IDE assertion failure reported by Luiz (in error cases, the DMA status, including acb, could first be reset in the callback and only then be set by the caller, resulting in a dangling acb and wrong status re

[Qemu-devel] [PATCH 1/3] qcow2: Avoid direct AIO callback

2011-06-07 Thread Kevin Wolf
bdrv_aio_* must not call the callback before returning to its caller. In qcow2, this could happen in some error cases. This starts the real requests processing in a BH to avoid this situation. Signed-off-by: Kevin Wolf --- block/qcow2.c | 39 ++- 1 files cha

[Qemu-devel] [PATCH 3/3] vdi: Avoid direct AIO callback

2011-06-07 Thread Kevin Wolf
bdrv_aio_* must not call the callback before returning to its caller. In vdi, this could happen in some error cases. This starts the real requests processing in a BH to avoid this situation. Signed-off-by: Kevin Wolf --- block/vdi.c | 40 1 files change

[Qemu-devel] [PATCH 2/3] qcow: Avoid direct AIO callback

2011-06-07 Thread Kevin Wolf
bdrv_aio_* must not call the callback before returning to its caller. In qcow, this could happen in some error cases. This starts the real requests processing in a BH to avoid this situation. Signed-off-by: Kevin Wolf --- block/qcow.c | 58 ++

Re: [Qemu-devel] [PATCH] Buildfix: fix libcacard build with -m32 on 64bit machine

2011-06-07 Thread Stefan Berger
On 05/26/2011 02:26 PM, Alon Levy wrote: On Thu, May 26, 2011 at 01:56:54PM -0400, Stefan Berger wrote: When configuring with --extra-cflags="-m32" on a 64bit machine the following error appears during compilation: Thanks for the fix. Anybody else who thinks that this patch below is necessary?

Re: [Qemu-devel] [PATCH 0/3] ide: add TRIM support

2011-06-07 Thread Kevin Wolf
Am 07.06.2011 13:13, schrieb Christoph Hellwig: > ping? Sorry, forgot to answer... The problem that I had with this was that you add to the BM status register abuse with BM_STATUS_RETRY_TRIM. I intended to look into this and then review the rest of it. We'll need to have a fix for all the other a

Re: [Qemu-devel] [Qemu-trivial] [PATCH] slirp: fix guestfwd id

2011-06-07 Thread Stefan Hajnoczi
On Sat, Jun 04, 2011 at 07:25:59AM +0200, Alexander Graf wrote: > When using -net user,guestfwd=... Qemu immediately complains about the id > being in invalid format. This is because we pass in an id that contains a > colon, while the id restrictions don't allow colons. > > This patch changes the

Re: [Qemu-devel] [RFC 05/10] QMP: Introduce the blockdev-tray-open command

2011-06-07 Thread Luiz Capitulino
On Tue, 7 Jun 2011 18:59:12 +0530 Amit Shah wrote: > On (Mon) 06 Jun 2011 [11:38:03], Luiz Capitulino wrote: > > On Mon, 6 Jun 2011 17:10:32 +0530 > > Amit Shah wrote: > > > > > On (Fri) 03 Jun 2011 [16:03:57], Luiz Capitulino wrote: > > > > > > > +static int tray_open(const char *device, int

Re: [Qemu-devel] [PATCH] Make x86 mfence and lfence illegal without SSE2

2011-06-07 Thread Stefan Hajnoczi
On Mon, Jun 06, 2011 at 03:49:17PM +0100, Martin Simmons wrote: > Hi, > > While trying to use qemu -cpu pentium3 to test for incorrect uses of certain > SSE2 instructions, I found that QEMU allowed the mfence and lfence > instructions to be executed even though Pentium 3 doesn't support them. > >

Re: [Qemu-devel] [Qemu-trivial] [PATCH] m68k: Replace gen_im32() by tcg_const_i32()

2011-06-07 Thread Stefan Hajnoczi
On Sun, Jun 05, 2011 at 12:26:18PM +0200, Andreas Färber wrote: > I would add as description: "This resolves a FIXME." > > Is "by" grammatically correct here? I would've thought to replace > sth. "with" sth., by s.o. > > Am 25.03.2011 um 20:36 schrieb Laurent Vivier: > > >Signed-off-by: Laurent

Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fix compilation warning due to missing header for sigaction (followup)

2011-06-07 Thread Stefan Hajnoczi
On Thu, Jun 02, 2011 at 11:26:49PM -0400, Alexandre Raymond wrote: > This patch removes all references to signal.h when qemu-common.h is included > as they become redundant. > > Signed-off-by: Alexandre Raymond > --- > audio/audio_pt_int.c |2 -- > audio/sdlaudio.c |1 - > block/ra

[Qemu-devel] virtio scsi host draft specification, v3

2011-06-07 Thread Paolo Bonzini
Hi all, after some preliminary discussion on the QEMU mailing list, I present a draft specification for a virtio-based SCSI host (controller, HBA, you name it). The virtio SCSI host is the basis of an alternative storage stack for KVM. This stack would overcome several limitations of the current

Re: [Qemu-devel] [RFC 10/10] QMP/HMP: change: Use QMP tray commands

2011-06-07 Thread Amit Shah
On (Mon) 06 Jun 2011 [11:45:06], Luiz Capitulino wrote: > On Mon, 6 Jun 2011 17:18:31 +0530 > Amit Shah wrote: > > > On (Fri) 03 Jun 2011 [16:04:02], Luiz Capitulino wrote: > > > This commit rewrites change in terms of blockdev-tray-open, > > > blockdev-media-insert and blockdev-tray-close. > > >

Re: [Qemu-devel] [RFC 05/10] QMP: Introduce the blockdev-tray-open command

2011-06-07 Thread Amit Shah
On (Mon) 06 Jun 2011 [11:38:03], Luiz Capitulino wrote: > On Mon, 6 Jun 2011 17:10:32 +0530 > Amit Shah wrote: > > > On (Fri) 03 Jun 2011 [16:03:57], Luiz Capitulino wrote: > > > > > +static int tray_open(const char *device, int remove, int force) > > > +{ > > > +BlockDriverState *bs; > > >

Re: [Qemu-devel] [patch 6/7] QEMU live block copy

2011-06-07 Thread Stefan Hajnoczi
On Mon, Jun 6, 2011 at 5:55 PM, Marcelo Tosatti wrote: I haven't reviewed this whole patch yet, but comments below. This patch, like image streaming, may hit deadlocks due to synchronous I/O emulation. I discovered this problem when working on image streaming and it should be solved by getting

[Qemu-devel] Invitation to connect on LinkedIn

2011-06-07 Thread Belisko Marek via LinkedIn
LinkedIn Belisko Marek requested to add you as a connection on LinkedIn: -- Jiajun, I'd like to add you to my professional network on LinkedIn. - Belisko Accept invitation from Belisko Marek http://www.linkedin.com/e/-kkb1ec-goms1z

Re: [Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev

2011-06-07 Thread Paolo Bonzini
On 06/07/2011 11:19 AM, Markus Armbruster wrote: > That would be the "reg" value in DEFINE_SPAPR_PROPERTIES (patch 2). I > didn't make it a bus property because the default values varies Hmm. Explain that in a comment where the bus property would go? qdev.txt is probably a better place to

Re: [Qemu-devel] [PATCH 0/3] ide: add TRIM support

2011-06-07 Thread Christoph Hellwig
ping? On Thu, May 19, 2011 at 10:57:48AM +0200, Christoph Hellwig wrote: > This patchset resurrects my older patches to add TRIM support. The > old approach to pass an action handler through the IDE subsystem doesn't > work any more after the refactoring for the AHCI driver, so not we simple > sw

Re: [Qemu-devel] [patch 2/7] Add blkmirror block driver

2011-06-07 Thread Stefan Hajnoczi
On Mon, Jun 6, 2011 at 5:55 PM, Marcelo Tosatti wrote: > +/* Valid blkmirror filenames look like > + * blkmirror:path/to/image1:path/to/image2 */ > +static int blkmirror_open(BlockDriverState *bs, const char *filename, int > flags) > +{ > +    BdrvMirrorState *m = bs->opaque; > +    int ret, esca

Re: [Qemu-devel] [patch 6/7] QEMU live block copy (update)

2011-06-07 Thread Jiri Denemark
On Mon, Jun 06, 2011 at 14:03:44 -0300, Marcelo Tosatti wrote: ... > SQMP > +query-block-copy > +- > + > +Live block copy status. > + > +Each block copy instance information is stored in a json-object and the > returned > +value is a json-array of all instances. > + > +Each json-objec

[Qemu-devel] [PATCH] console: add question-mark escape operator

2011-06-07 Thread Alexander Graf
Some termcaps (found using SLES11SP1) use [? sequences. According to man console_codes (http://linux.die.net/man/4/console_codes) the question mark is a nop and should simply be ignored. This patch does exactly that, rendering screen output readable when outputting guest serial consoles to the gra

Re: [Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev

2011-06-07 Thread Markus Armbruster
Paolo Bonzini writes: > On 06/07/2011 09:51 AM, Markus Armbruster wrote: >>> > diff --git a/hw/spapr_vio.c b/hw/spapr_vio.c >>> > index 6f34159..a193caa 100644 >>> > --- a/hw/spapr_vio.c >>> > +++ b/hw/spapr_vio.c >>> > @@ -52,6 +52,10 @@ >>> >static struct BusInfo spapr_vio_bus_info = {

Re: [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h

2011-06-07 Thread Paolo Bonzini
On 06/07/2011 12:15 AM, Richard Henderson wrote: Do we take his existing 3-part patch as-is, and the packed patch as a followup? Do we convert to packed accesses first and move it around after? Do we do it all in one step? Either of the first two works for me. However, since this series was a

Re: [Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev

2011-06-07 Thread Paolo Bonzini
On 06/07/2011 09:51 AM, Markus Armbruster wrote: > diff --git a/hw/spapr_vio.c b/hw/spapr_vio.c > index 6f34159..a193caa 100644 > --- a/hw/spapr_vio.c > +++ b/hw/spapr_vio.c > @@ -52,6 +52,10 @@ >static struct BusInfo spapr_vio_bus_info = { >.name = "spapr-vio", >.s

Re: [Qemu-devel] qemu - SCSI disk "Device Model", "Serial Number", and "Firmware Version"?

2011-06-07 Thread Paolo Bonzini
On 06/07/2011 10:11 AM, Kevin Wolf wrote: > > SMART is only available in ATA Version 3 Revision 3 or greater. > > We will try to proceed in spite of this. > > SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported. > > Checking for SMA

[Qemu-devel] qemu -smp n, "n>1" will lead the guest OS get dead

2011-06-07 Thread Wei
Hi all, I have met a difficult when I have installed ubuntu on qemu. My physical meachine is 8 cores. Version of my qemu: QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5), Copyright (c) 2003-2008 Fabrice Bellard I use the following cmd to install ubuntu10.10 on qemu qemu-img create -f

Re: [Qemu-devel] [PATCH] Command line support for altering the log file location

2011-06-07 Thread Kevin Wolf
Am 05.06.2011 02:46, schrieb Matthew Fernandez: > So, to clarify, all text above the '' is included as the commit > message and the sign off line should be in this section. All text > below the '' before the first diff is treated as comments that are > not to be committed. Is this correct?

[Qemu-devel] [PATCH v2 2/2] docs: qdev-device-use.txt has become stale, update it

2011-06-07 Thread Markus Armbruster
Document more bus addresses. Update for bugs fixed. Describe where exactly the -drive options go. Update for recent split of qdev ide-drive into ide-{cd,hd}, scsi-disk into scsi-{cd,hd}. Document scsi-hd's removable property only for usb-storage, because that's where it's used. Fix description

[Qemu-devel] [PATCH v2 0/2] qdev-device-use.txt update & trivial bonus fixes

2011-06-07 Thread Markus Armbruster
Bunched together with trivial fixes to save me the trouble of updating the docs again when they go in. v1 has been on the list for three weeks. That's a long time for a documentation fix. Please apply. v2: * Trivially rebased. * Dropped "[PATCH 2/3] qxl: Fix -device qxl-vga to suppress the de

[Qemu-devel] [PATCH v2 1/2] isa-vga: Make available with -device, like the other VGA qdevs

2011-06-07 Thread Markus Armbruster
Switch no_user off and make it suppress the default VGA. Signed-off-by: Markus Armbruster --- hw/vga-isa.c |1 - vl.c |1 + 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vga-isa.c b/hw/vga-isa.c index fde0d56..245841f 100644 --- a/hw/vga-isa.c +++ b/hw/vga-isa

Re: [Qemu-devel] qemu - SCSI disk "Device Model", "Serial Number", and "Firmware Version"?

2011-06-07 Thread Markus Armbruster
Dave Seddon writes: > Greetings, > > Just wondering if it would be difficult to add the ability to define the > SCSI disk "Device Model", "Serial Number", and "Firmware Version". I've > been using the '-device lsi' successfully to emulate the LSI controller, > but now I want to emulate certain d

Re: [Qemu-devel] [RFC PATCH v2 09/13] scsi: introduce the scsi-target device

2011-06-07 Thread Stefan Hajnoczi
On Mon, Jun 06, 2011 at 06:04:18PM +0200, Paolo Bonzini wrote: > +static SCSIRequest *scsi_new_request(SCSIDevice *d, DeviceState *initiator, > + uint32_t tag, uint32_t lun) > +{ > +SCSITargetState *s = DO_UPCAST(SCSITargetState, qdev, d); > +SCSIRequest *re

Re: [Qemu-devel] qemu - SCSI disk "Device Model", "Serial Number", and "Firmware Version"?

2011-06-07 Thread Kevin Wolf
Am 07.06.2011 09:35, schrieb Paolo Bonzini: > On 06/07/2011 09:04 AM, Dave Seddon wrote: >> Here's an example of the nasty/QEMU output of smartmontools: >> --- >> # smartctl -d sat --all /dev/sg0 >> smartctl version 5.38 [i686-spcdn-linux-gnu] Cop

  1   2   >