Re: [Qemu-devel] [PATCH 1/3] start vm after reseting it

2012-06-12 Thread Wen Congyang
At 05/31/2012 03:17 AM, Luiz Capitulino Wrote: > On Mon, 21 May 2012 14:49:32 +0800 > Wen Congyang wrote: > >> The guest should run after reseting it, but it does not >> run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. >> >> Signed-off-by: Wen Congyang >> --- >> vl.c |1

Re: [Qemu-devel] qemu & vgasrc

2012-06-12 Thread Michael Tokarev
On 13.06.2012 10:47, Kevin O'Connor wrote: > On Tue, Jun 12, 2012 at 05:46:30PM +0400, Michael Tokarev wrote: [] > I don't know of any major problems with SeaVGABIOS, but it hasn't been > tested nearly as thoroughly as the bochs vgabios. Well, testing is what we can try to do.. ;) >> The problem

Re: [Qemu-devel] qemu & vgasrc

2012-06-12 Thread Kevin O'Connor
On Tue, Jun 12, 2012 at 05:46:30PM +0400, Michael Tokarev wrote: > How do you think, whenever it is a good idea to let > vgasrc vgabios to be used with 1.1 qemu and qemu-kvm > in the upcoming Debian stable release, codename > wheezy? I don't know of any major problems with SeaVGABIOS, but it hasn'

Re: [Qemu-devel] Prop-ptr and Xilinx.

2012-06-12 Thread Paolo Bonzini
Il 13/06/2012 08:21, Peter Crosthwaite ha scritto: > > Im testing your revisions the the xilinx ip around getting rid of the > pointer props (your prop-ptr branch on your github). > > First up theres a typo in the machine model stuff, heres the fix: > > diff --git a/hw/petalogix_ml605_mmu.c b/hw

Re: [Qemu-devel] [PATCH V3 0/2] Xilinx Zynq PL330 support

2012-06-12 Thread Peter Maydell
On 13 June 2012 07:12, Peter Crosthwaite wrote: > Ping! > > Any further review? I'll try to get to it when I get back from holiday next week if nobody else has before then (this applies for any ARM related patches people were hoping for review about :-)) -- PMM

[Qemu-devel] Prop-ptr and Xilinx.

2012-06-12 Thread Peter Crosthwaite
Hi Paolo, Im testing your revisions the the xilinx ip around getting rid of the pointer props (your prop-ptr branch on your github). First up theres a typo in the machine model stuff, heres the fix: diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index 37866f4..e718183 100644 --

Re: [Qemu-devel] [PATCH V3 0/2] Xilinx Zynq PL330 support

2012-06-12 Thread Peter Crosthwaite
Ping! Any further review? On Fri, Jun 1, 2012 at 12:56 PM, Peter A. G. Crosthwaite wrote: > These patches add support for the Primcell PL330 DMA controller and add it to > the Xilinx Zynq machine model. Patch 1 is the device model. Patch 2 is the > machine model update. > > The Device model wa

[Qemu-devel] [PATCH v2 2/2] qemu-ga: add guest-fstrim command

2012-06-12 Thread Paolo Bonzini
FITRIM is a mounted filesystem feature to discard (or "trim") blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thinly-provisioned storage. Provide access to the feature from the host so that filesystems can be trimmed periodically or before migration.

[Qemu-devel] [PATCH v2 02/11] xilinx_timer: added default frequency

2012-06-12 Thread Peter A. G. Crosthwaite
Added a reasonable default frequency for the xilinx timer (the 62MHz from s3adsp machine model). Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx_timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index 3ab2f2b..e9fde28 100

[Qemu-devel] [PATCH v2 1/2] qemu-ga: make names more generic for mount list functions

2012-06-12 Thread Paolo Bonzini
We will use these functions and types for more than FSFREEZE, so rename them. Signed-off-by: Paolo Bonzini --- qga/commands-posix.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 00d03

[Qemu-devel] [PATCH v2 0/2] qemu-ga: Add guest-fstrim command.

2012-06-12 Thread Paolo Bonzini
FITRIM is a mounted filesystem feature to discard (or "trim") blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thinly-provisioned storage. Provide access to the feature from the host so that filesystems can be trimmed periodically or before migration.

[Qemu-devel] [PATCH v2 03/11] xilinx_timer: changed nr_timers to one_timer_only

2012-06-12 Thread Peter A. G. Crosthwaite
The configurable property for this IP in the Xilinx tools is a boolean switch "one-timer-only" that flicks this timer from being dual channel to single. Updated QEMU to work the same way for better match with the IP core and its TRM. Signed-off-by: Peter A. G. Crosthwaite --- hw/petalogix_ml605_

[Qemu-devel] [PATCH v2 06/11] xilinx_ethlite: tweaked naming of ping-pong props

2012-06-12 Thread Peter A. G. Crosthwaite
Changed "txpingpong" prop to "tx-ping-pong". Same for rx. This is done to make the property name exactly match what is output by the xilinx tools for this IP. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_ethlite.c |4 ++-- 2 files changed, 4 insertion

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: add guest-fstrim command

2012-06-12 Thread Paolo Bonzini
Il 12/06/2012 23:05, Michael Roth ha scritto: > The FsMount* stuff is still only declared if CONFIG_FSFREEZE is defined, > we'll need to make sure those are declared when CONFIG_FSTRIM is defined > as well. Shouldn't be a problem in practice as FIFREEZE is older: fcccf502 (Takashi Sato 2

[Qemu-devel] [PATCH v2 10/11] xilinx_axidma: (un)reversed irq initialisation

2012-06-12 Thread Peter A. G. Crosthwaite
The axidma irq orders are reversed in both the device model and the instantion. Undid both reversal (for no net change). Also needs to be reversed for consistency with Xilinx tools IRQ listing. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h|4 ++-- hw/xilinx_axidma.c |2 +

[Qemu-devel] [PATCH v2 08/11] xilinx_axienet: droped the c_ on parameters

2012-06-12 Thread Peter A. G. Crosthwaite
Even though the xilinx tools do have C_ on all params by default, drop this for consistency with all the other xilinx IP (I.E. param names are the xilinx names without the C_ prefix) Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_axienet.c |4 ++-- 2 fi

[Qemu-devel] [PATCH v2 05/11] xilinx_intc: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-intc. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |2 +- hw/xilinx_intc.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.h b/hw/xil

[Qemu-devel] [PATCH v2 11/11] xilinx_axidma: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,axi-dma. This is the exact name of the device in the Xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h|2 +- hw/xilinx_axidma.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.h b/hw/

[Qemu-devel] [PATCH v2 07/11] xilinx_ethlite: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-ethernetlite. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_ethlite.c |5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH v2 04/11] xilinx_timer: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-timer. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |2 +- hw/xilinx_timer.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.h b/hw/

[Qemu-devel] [PATCH v2 09/11] xilinx_axienet: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,axi-ethernet. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/xilinx.h |4 ++-- hw/xilinx_axienet.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xilinx.

[Qemu-devel] [PATCH v2 01/11] xilinx_uartlite: changed device name

2012-06-12 Thread Peter A. G. Crosthwaite
Changed device name to xlnx,xps-uartlite. This is the exact name of the device in the xilinx EDK development tools. Signed-off-by: Peter A. G. Crosthwaite --- hw/petalogix_s3adsp1800_mmu.c |2 +- hw/xilinx_uartlite.c |5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) di

[Qemu-devel] [PATCH v2 00/11] Xilinx Devs: refactored device and property names

2012-06-12 Thread Peter A. G. Crosthwaite
Refactored the device and property names of the Xilinx IP models to match those used by Xilinx in their tools. This lays the groundwork for creating Xilinx IP machines from Xilinx generated sources (using -readconfig or -device arguments or dtb driven machine creation) without having to provide

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

2012-06-12 Thread Benjamin Herrenschmidt
On Wed, 2012-06-13 at 13:39 +1000, Alexey Kardashevskiy wrote: > On 13/06/12 13:22, Benjamin Herrenschmidt wrote: > > On Wed, 2012-06-13 at 12:44 +1000, Alexey Kardashevskiy wrote: > >> Ping? > > > > FYI. The way it normally works on pseries is that RTAS, which is the > > part of the firmware that

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

2012-06-12 Thread Alexey Kardashevskiy
On 13/06/12 13:22, Benjamin Herrenschmidt wrote: > On Wed, 2012-06-13 at 12:44 +1000, Alexey Kardashevskiy wrote: >> Ping? > > FYI. The way it normally works on pseries is that RTAS, which is the > part of the firmware that lives inside the partition alongside the OS, > performs the accesses to co

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

2012-06-12 Thread Benjamin Herrenschmidt
On Wed, 2012-06-13 at 12:44 +1000, Alexey Kardashevskiy wrote: > Ping? FYI. The way it normally works on pseries is that RTAS, which is the part of the firmware that lives inside the partition alongside the OS, performs the accesses to configure the MSI/MSI-X. With qemu "pseries" machine we don't

[Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time?

2012-06-12 Thread Wei-Ren Chen
Hi all, I suspect that guest memory access (qemu_ld/qemu_st) account for the major of time spent in system mode. I would like to know precisely how much (if possible). We use tools like perf [1] before, but since the logic of guest memory access aslo embedded in the host binary not only helper

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

2012-06-12 Thread Alexey Kardashevskiy
Ping? On 12/05/12 16:48, Alexey Kardashevskiy wrote: > Added msi_set_address_data and msix_set_address_data in order to support > sPAPR-specific implementation of MSI/MSIX configuration mechanism. > POWER guest does not initialize these fields, it expects a supervisor to > get them initialized. >

Re: [Qemu-devel] [PATCH] net: complete NetSocketState lifecycle handling

2012-06-12 Thread Zhi Yong Wu
On Tue, Jun 12, 2012 at 10:04 PM, Stefan Hajnoczi wrote: > The NetSocketState struct contains two file descriptors: an active > connection and a listen socket for new connections.  It's important that > we clean up after ourselves so these file descriptors are initialized to > -1 when unused.  Thi

Re: [Qemu-devel] [RFC] QOMification of AXI streams

2012-06-12 Thread Benjamin Herrenschmidt
On Tue, 2012-06-12 at 12:46 +0300, Avi Kivity wrote: > > I think that transformation function lives in the bus layer > > MemoryRegion. It's a bit tricky though because you need some sort of > > notion of "who is asking". So you need: > > > > dma_memory_write(MemoryRegion *parent, DeviceState *ca

[Qemu-devel] [PATCH] .gitignore update

2012-06-12 Thread Eduardo Habkost
Makes sure the following files are ignored: libcacard/.libs/ libcacard/libcacard.la libcacard/libcacard.pc libcacard/libcacard/ libcacard/osdep.lo libcacard/oslib-posix.lo libcacard/qemu-thread-posix.lo libcacard/qemu-timer-common.lo libcacard/trace.lo libcacard/trace/ tests/

Re: [Qemu-devel] [PATCH 8/8] s390: Fix the storage increment size calculation

2012-06-12 Thread Jeng-fang Wang
Yes, you can refer to AR10040-03-POK, Service-Call Logical Processor Architecture for S/390 and z/Architecture, Figure 2-6 Minimum storage increment and subincrement size. :) Nick From: Alexander Graf To: Jens Freimann Cc: Jens Freimann , Cornelia Huck , qemu-devel

[Qemu-devel] [Bug 899961] Re: qemu/kvm locks up when run 32bit userspace with 64bit kernel

2012-06-12 Thread Bug Watch Updater
** Changed in: qemu-kvm (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/899961 Title: qemu/kvm locks up when run 32bit userspace with 64bit kernel S

Re: [Qemu-devel] [PATCH v2 3/3] qmp: do not include monitor.h from qapi-types-core.h

2012-06-12 Thread Andreas Färber
Am 07.06.2012 06:55, schrieb Anthony Liguori: > On 06/07/2012 10:02 AM, Paolo Bonzini wrote: >> The comment is stale, monitor.h is not needed anymore (only qerror.h >> is, because it contains the schema for errors). >> >> Signed-off-by: Paolo Bonzini >> --- >> qapi/qapi-types-core.h |4 +--- >

Re: [Qemu-devel] [PATCH 5/8] s390: Cleanup sclp functions

2012-06-12 Thread Anthony Liguori
On 06/12/2012 07:32 AM, Alexander Graf wrote: On 06/12/2012 02:24 PM, Christian Borntraeger wrote: Yes we will re-split the sclp patches. besides that, some comments: On 12/06/12 11:58, Alexander Graf wrote: +#include "hw/s390-sclp.h" No need for hw/. will fix. +void sclp_service_interr

Re: [Qemu-devel] [PATCH 5/8] s390: Cleanup sclp functions

2012-06-12 Thread Anthony Liguori
On 06/06/2012 07:05 AM, Jens Freimann wrote: From: Christian Borntraeger The sclp facility on s390 is a hardware that is external to the cpu. Lets cleanup the definitions and move the functionality into a separate file under hw/. Signed-off-by: Christian Borntraeger Signed-off-by: Jens Freimann

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: add guest-fstrim command

2012-06-12 Thread Michael Roth
On Tue, Jun 12, 2012 at 12:50:08PM +0200, Paolo Bonzini wrote: > FITRIM is a mounted filesystem feature to discard (or "trim") blocks which > are not in use by the filesystem. This is useful for solid-state drives > (SSDs) and thinly-provisioned storage. Provide access to the feature > from the ho

[Qemu-devel] [PATCH] msix: Support specifying offsets, BARs, and capability location

2012-06-12 Thread Alex Williamson
msix_init has very little configurability as to how it lays out MSIX for a device. It claims to resize BARs, but doesn't actually do this anymore. This patch allows MSIX to be fully specified, which is necessary both for emulated devices trying to match the physical layout of a hardware device as

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: add guest-fstrim command

2012-06-12 Thread Luiz Capitulino
On Tue, 12 Jun 2012 12:50:08 +0200 Paolo Bonzini wrote: > FITRIM is a mounted filesystem feature to discard (or "trim") blocks which > are not in use by the filesystem. This is useful for solid-state drives > (SSDs) and thinly-provisioned storage. Provide access to the feature > from the host so

Re: [Qemu-devel] [PATCH] Fix some more license versions (GPL2+ instead of GPL2)

2012-06-12 Thread Luiz Capitulino
On Mon, 11 Jun 2012 07:49:18 +0200 Stefan Weil wrote: > Cc: Wen Congyang > Signed-off-by: Stefan Weil Applied to the qmp branch, thanks. > --- > > Wen Congyang, would you please add your Signed-off-by? > > Thanks, > Stefan W. > > memory_mapping-stub.c |4 ++-- > memory_map

Re: [Qemu-devel] [PATCH 1.1] monitor: Fix memory leak with readline completion

2012-06-12 Thread Luiz Capitulino
On Sat, 09 Jun 2012 23:36:26 +0200 Stefan Weil wrote: > Am 22.05.2012 22:24, schrieb Stefan Weil: > > Am 14.05.2012 21:47, schrieb Stefan Weil: > >> Each string which is shown during readline completion in the QEMU > >> monitor > >> is allocated dynamically but currently never deallocated. > >>

Re: [Qemu-devel] [PATCH] configure: fix -enable-debug with newer toolchains

2012-06-12 Thread Eduardo Habkost
On Wed, Jun 06, 2012 at 12:03:18PM +0300, Avi Kivity wrote: > Fedora 17's toolchain wants optimization enabled for _FORTIFY_SOURCE; > so disable _FORTIFY_SOURCE when debugging. > > Signed-off-by: Avi Kivity I was bitten by this problem too. The patch fixes it for me. Tested-by: Eduardo Habkost

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread BRULE Herman
/usr/bin/qemu-system-x86_64 -drive file=hdd.img,if=virtio,cache=unsafe -k fr -alt-grab -m 1024 -vga vmware -net nic,vlan=0,model=virtio -net user But bug will ALL cli and options. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https

Re: [Qemu-devel] [PATCH v2 0/3] Clean up includes of monitor.h

2012-06-12 Thread Luiz Capitulino
On Thu, 7 Jun 2012 04:02:19 +0200 Paolo Bonzini wrote: > There is no reason why QAPI clients should use monitor.h at all, > qerror.h suffices. > > qmp-commands.h uses the Monitor typedef, but it is only included > from files that already get the typedef from qemu-common.h. Applied to the qmp b

Re: [Qemu-devel] [PATCH v3 28/29] configure: ensure directory exists when creating symlink

2012-06-12 Thread Andreas Färber
Am 07.06.2012 09:40, schrieb Paolo Bonzini: > From: Anthony Liguori > > Signed-off-by: Anthony Liguori > --- > configure |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/configure b/configure > index cd5e8b3..cbcbcb1 100755 > --- a/configure > +++ b/configure [...]

Re: [Qemu-devel] [RFC PATCH 1/1] linux-user: Probe the guest base for shared objects when needed

2012-06-12 Thread Meador Inge
On 06/12/2012 09:08 AM, Richard Henderson wrote: > On 2012-06-07 13:59, Meador Inge wrote: >> load_addr = loaddr; >> if (ehdr->e_type == ET_DYN) { >> +if (loaddr < mmap_min_addr) >> +probe_guest_base(image_name, loaddr, hiaddr); > > This doesn't make any sense. load

Re: [Qemu-devel] Large sized guest taking for ever to boot...

2012-06-12 Thread Chegu Vinod
On 6/12/2012 8:39 AM, Gleb Natapov wrote: On Tue, Jun 12, 2012 at 08:33:59AM -0700, Chegu Vinod wrote: I rebuilt the 3.4.1 kernel in the guest from scratch and retried my experiments and measured the boot times... a) Host : RHEL6.3 RC1 + qemu-kvm (that came with it)& Guest : RHEL6.3 RC1: ~1

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread Michael Tokarev
Can we close this with "works for me" already? Can you FINALLY provide the command line? Thanks. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1012023 Title: Windows 7 bluescreen STOP: 0005D

[Qemu-devel] [PATCH 05/10] ISCSI: Add SCSI passthrough via scsi-generic to libiscsi

2012-06-12 Thread Paolo Bonzini
From: Ronnie Sahlberg Update iscsi to allow passthrough of SG_IO scsi commands when the iscsi device is forced to be scsi-generic. Implement both bdrv_ioctl() and bdrv_aio_ioctl() in the iscsi backend, emulate the SG_IO ioctl and pass the SCSI commands across to the iscsi target. This allows en

[Qemu-devel] [PATCH 09/10] megasas: Add trace events

2012-06-12 Thread Paolo Bonzini
From: Hannes Reinecke This patch add trace events to the megasas HBA emulation. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini --- hw/megasas.c | 348 +- trace-events | 79 + 2 files changed, 377 insertions(+)

[Qemu-devel] [PATCH 03/10] atapi: implement READ DISC INFORMATION

2012-06-12 Thread Paolo Bonzini
This command is not necessary for CD-ROM and DVD-ROM, but some versions of udev trip on its absence. Cc: Kevin Wolf Cc: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/ide/atapi.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/hw/ide/atapi.c b/hw/i

[Qemu-devel] [PATCH 06/10] ISCSI: force use of sg for SMC and SSC devices

2012-06-12 Thread Paolo Bonzini
From: Ronnie Sahlberg If the device we open is a SMC or SSC device, then force the use of sg. We dont have any medium changer or tape emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway. Forcing sg also makes qemu skip trying to read from the device to guess the

[Qemu-devel] [PATCH 04/10] scsi-disk: implement READ DISC INFORMATION

2012-06-12 Thread Paolo Bonzini
This command is not necessary for CD-ROM and DVD-ROM, but some versions of udev trip on its absence. Cc: Kevin Wolf Cc: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/scsi-defs.h |1 + hw/scsi-disk.c | 40 2 files changed, 41 insertions(+)

[Qemu-devel] [PATCH 10/10] virtio-scsi: do not crash on adding buffers to the event queue

2012-06-12 Thread Paolo Bonzini
The event queue is not supported yet and the handler does not have to do much anyway when buffers are added. However, the handler is called unconditionally by the virtio layer, and this results in a crash as soon as buffers are added to the event queue because we pass NULL. Reported-by: Bryan Ven

[Qemu-devel] [PATCH 07/10] megasas: Add header file

2012-06-12 Thread Paolo Bonzini
From: Hannes Reinecke This patch adds the header file for megasas. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini --- hw/mfi.h | 1248 ++ 1 file changed, 1248 insertions(+) create mode 100644 hw/mfi.h diff --git a/hw/m

[Qemu-devel] [PATCH 02/10] scsi: add a qdev property for the disk's WWN

2012-06-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 2bd8907..8882f69 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -68,6 +68,7 @@ struct SCSIDiskState bool media_chang

[Qemu-devel] [PULL 00/10] SCSI updates for 2012-06-12

2012-06-12 Thread Paolo Bonzini
Anthony, The following changes since commit dbaf26b3b22daae3be6a89b965e43503e7c3b912: Revert "build: compile oslib-obj-y once" (2012-06-10 20:29:19 +) are available in the git repository at: git://github.com/bonzini/qemu.git scsi-next for you to fetch changes up to 023e639ab5e9726bee57

[Qemu-devel] [PATCH 01/10] scsi: simplify handling of the VPD page length field

2012-06-12 Thread Paolo Bonzini
The last four bytes of the thin provisioning page were cut out. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 045c764..2bd8907 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-d

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread BRULE Herman
Hardware info: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz 00:00.0 Host bridge: Intel Corporation Core Processor DMI (rev 11) 00:03.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 1 (rev 11) 00:05.0 PCI bridge: Intel Corporation Core Processor PCI Express Root Port 3 (r

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread BRULE Herman
Last version of QEMU (1.0.1 -> I have try other minor version, 1.0), I have try with multiple kernel (3.4, 3.5), no dmesg info. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1012023 Title: Windows

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread BRULE Herman
** Attachment added: "crash.png" https://bugs.launchpad.net/bugs/1012023/+attachment/3186089/+files/crash.png -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1012023 Title: Windows 7 bluescreen ST

[Qemu-devel] [PATCH V12 2/9] configure: Introduce --enable-xen-pci-passthrough.

2012-06-12 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk --- configure | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/configure b/configure index dd0d2b3..d9ecfe5 100755 --- a/configure +++ b/configure @

[Qemu-devel] [PATCH v4 2/3] Simpletrace v2: Support multiple arguments, strings.

2012-06-12 Thread Harsh Prateek Bora
Existing simpletrace backend allows to trace at max 6 args and does not support strings. This newer tracelog format gets rid of fixed size records and therefore allows to trace variable number of args including strings. Sample trace with strings: v9fs_version 0.000 tag=0x id=0x64 msize=0x2000

Re: [Qemu-devel] [PATCH 2/9] alpha-linux-user: Work around hosted mmap allocation problems

2012-06-12 Thread Richard Henderson
On 2012-06-12 07:53, Alexander Graf wrote: > > > On 12.06.2012, at 16:27, Richard Henderson wrote: > >> On 2012-06-12 07:12, Andreas Färber wrote: >>> This looks fishy to me... why should the kernel use a bigger address >>> space than hardware? For arm on x86_64 such a workaround was not >>> ne

[Qemu-devel] [PATCH] slirp: Handle whole 127.0.0.0/8 network as local addresses.

2012-06-12 Thread Anders Waldenborg
Changes so translation of remote address to the host's ip address in the virtual network happens for all addresses in the 127.0.0.0/8 network, not just 127.0.0.1. This fixes hostfwd bound to addresses such as 127.0.0.2 works Signed-off-by: Anders Waldenborg --- slirp/main.h |1 + slirp/

[Qemu-devel] [PATCH v4 1/3] monitor: remove unused do_info_trace

2012-06-12 Thread Harsh Prateek Bora
Going forward with simpletrace v2 variable size trace records, we cannot have a generic function to print trace event info and therefore this interface becomes invalid. As per Stefan Hajnoczi: "This command is only available from the human monitor. It's not very useful because it historically ha

[Qemu-devel] [PATCH V12 6/9] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-06-12 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/i386/Makefile.objs |1 + hw/xen_common.h |3 + hw

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread Michael Tokarev
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/956374 - the same STOP code, fwiw. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1012023 Title: Windows 7 bluescreen STOP: 0005D Status

[Qemu-devel] [Bug 1012023] Re: Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread Michael Tokarev
This is a wonderful bugreport. With no information whatsoever. Can we close it with "works for me" resolution already? ;) Seriously, please provide at least version of qemu and kernel you're using, together with complete qemu command line. -- You received this bug notification because you are

[Qemu-devel] [PATCH V12 1/9] pci_ids: Add INTEL_82599_SFP_VF id.

2012-06-12 Thread Anthony PERARD
We are using this in our quirk lookup provided by patch titled: Introduce Xen PCI Passthrough, PCI config space helpers. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids

[Qemu-devel] [PATCH V12 8/9] Introduce apic-msidef.h

2012-06-12 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/apic-msidef.h | 30 ++ hw/apic.c| 11 +-- 2 files changed, 31 insertions(+

[Qemu-devel] [PATCH V12 5/9] Revert "pci: don't export an internal function"

2012-06-12 Thread Anthony PERARD
This reverts commit 94a09e2c846374a96719cda2b4e1312d8c4b08a7. This function is used by a later patch to parse the BDF of the device to passthrough. Signed-off-by: Anthony PERARD --- hw/pci.c |2 +- hw/pci.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b

[Qemu-devel] [PATCH V12 9/9] Introduce Xen PCI Passthrough, MSI (3/3)

2012-06-12 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/i386/Makefile.objs |2 +- hw/xen_pt.c

[Qemu-devel] [PATCH V12 7/9] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-06-12 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/xen_pt.c | 10 + hw/xen_pt.h |2 + hw

Re: [Qemu-devel] Large sized guest taking for ever to boot...

2012-06-12 Thread Gleb Natapov
On Tue, Jun 12, 2012 at 08:33:59AM -0700, Chegu Vinod wrote: > I rebuilt the 3.4.1 kernel in the guest from scratch and retried my > experiments and measured > the boot times... > > a) Host : RHEL6.3 RC1 + qemu-kvm (that came with it) & Guest : > RHEL6.3 RC1: ~1 min > > b) Host :3.4.1 + qemu-k

[Qemu-devel] [PATCH V12 3/9] Introduce XenHostPCIDevice to access a pci device on the host.

2012-06-12 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/i386/Makefile.objs|1 + hw/xen-host-pci-device.c | 396 ++ hw/xen-host-pci-device.h | 55 +++ 3 files changed, 452 insertions(+), 0 deletions(-) create mode 100644 hw/xen-host-pci-device.c create mod

Re: [Qemu-devel] Large sized guest taking for ever to boot...

2012-06-12 Thread Chegu Vinod
On 6/8/2012 11:37 AM, Jan Kiszka wrote: On 2012-06-08 20:20, Chegu Vinod wrote: On 6/8/2012 11:08 AM, Jan Kiszka wrote: [CC'ing qemu as this discusses its code base] On 2012-06-08 19:57, Chegu Vinod wrote: On 6/8/2012 10:42 AM, Alex Williamson wrote: On Fri, 2012-06-08 at 10:10 -0700, Chegu

[Qemu-devel] [PATCH V12 0/9] Xen PCI Passthrough

2012-06-12 Thread Anthony PERARD
Hi all, This patch series introduces the PCI passthrough for Xen. Please ack the generic bits so that Stefano can send a pull request: patches 1, 2, 4 and 5. Thanks, Changes since the last time: - new patch to export pci_parse_devaddr, so it can be used to parse a BDF in xen_pt. # th

Re: [Qemu-devel] [PATCH 2/9] alpha-linux-user: Work around hosted mmap allocation problems

2012-06-12 Thread Richard Henderson
On 2012-06-12 08:11, Alexander Graf wrote: > 32G is way too much. Do you have to preallocate such a big address > space? Usually 1G should be good enough for most programs, no? The default start to .text is 6G for alpha executables, so anything less than that + reasonable room will fail for obviou

[Qemu-devel] memory.c: ml->printed is never set to true

2012-06-12 Thread Jason Baron
Hi, I was looking at mtree_info() and noticed that ml->printed is never set to true, so it does not appear to be doing anything. It seems like we want to print the hierarchy for all aliases so perhaps it should just be dropped? Thanks, -Jason

[Qemu-devel] [PATCH v4 3/3] Update simpletrace.py for new log format

2012-06-12 Thread Harsh Prateek Bora
Support new tracelog format for multiple arguments and strings. Signed-off-by: Harsh Prateek Bora --- scripts/simpletrace.py | 116 +++- 1 file changed, 75 insertions(+), 41 deletions(-) diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py in

[Qemu-devel] [PATCH v4 0/3] Simpletrace v2: Support multiple args, strings.

2012-06-12 Thread Harsh Prateek Bora
Existing simpletrace backend allows to trace at max 6 args and does not support strings. This newer tracelog format gets rid of fixed size records and therefore allows to trace variable number of args including strings. Sample trace: v9fs_version 0.000 tag=0x id=0x64 msize=0x2000 version=9P200

Re: [Qemu-devel] [PATCH] MIPS/GDB: Correct stub handling of CP1 FIR

2012-06-12 Thread Richard Henderson
On 2012-06-07 18:08, Maciej W. Rozycki wrote: > The CP1 FIR register is read-only, ignore any write attempts from the GDB > stub. > > Signed-off-by: Maciej W. Rozycki Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH] qemu-img: document qed format on qemu-img man page

2012-06-12 Thread Kevin Wolf
Am 12.06.2012 17:05, schrieb Stefan Hajnoczi: > The qemu-img.1 man page is missing the qed format from its list of > supported formats. Document the image creation options for qed. > > Suggested-by: Michael Tokarev > Signed-off-by: Stefan Hajnoczi > --- > When the qcow2 QED mode is merged we ca

Re: [Qemu-devel] [PATCH V12 5/9] Revert "pci: don't export an internal function"

2012-06-12 Thread Michael S. Tsirkin
On Tue, Jun 12, 2012 at 04:05:19PM +0100, Anthony PERARD wrote: > This reverts commit 94a09e2c846374a96719cda2b4e1312d8c4b08a7. > > This function is used by a later patch to parse the BDF of the device to > passthrough. > > Signed-off-by: Anthony PERARD You probably want to parse the host addre

Re: [Qemu-devel] [PATCH 2/9] alpha-linux-user: Work around hosted mmap allocation problems

2012-06-12 Thread Alexander Graf
On 12.06.2012, at 16:57, Richard Henderson wrote: > On 2012-06-12 07:53, Alexander Graf wrote: >> >> >> On 12.06.2012, at 16:27, Richard Henderson wrote: >> >>> On 2012-06-12 07:12, Andreas Färber wrote: This looks fishy to me... why should the kernel use a bigger address space th

Re: [Qemu-devel] [PATCH] MIPS: Correct MIPS16/microMIPS branch size calculation

2012-06-12 Thread Peter Maydell
On 8 June 2012 02:06, Maciej W. Rozycki wrote: > From: Nathan Froyd > >  Nathan's original terse comment: > > "Use MIPS_HFLAG_B16 to determine the address of a jump instruction when we > need to restart a delay slot instruction." > > and was not accompanied by a test case nor I have one offhand.

[Qemu-devel] [PATCH] qemu-img: document qed format on qemu-img man page

2012-06-12 Thread Stefan Hajnoczi
The qemu-img.1 man page is missing the qed format from its list of supported formats. Document the image creation options for qed. Suggested-by: Michael Tokarev Signed-off-by: Stefan Hajnoczi --- When the qcow2 QED mode is merged we can update this again to reflect good cache=writethrough perfo

[Qemu-devel] [PATCH V12 4/9] pci.c: Add opaque argument to pci_for_each_device.

2012-06-12 Thread Anthony PERARD
The purpose is to have a more generic pci_for_each_device by passing an extra argument to the function called on every device. This patch will be used in a next patch. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/pci.c | 11 +++ hw/pci.h |4

Re: [Qemu-devel] [PATCH] MIPS/GDB: Correct stub handling of CP0 Status and Cause

2012-06-12 Thread Richard Henderson
On 2012-06-07 18:07, Maciej W. Rozycki wrote: > +/* Called for updates to CP0_Status. */ > +static inline void sync_c0_status(CPUMIPSState *env, int tc) Any reason why these rather large functions are inline rather than being in helper.c? Otherwise, the change to gdbstub.c is most proper. r~

Re: [Qemu-devel] [PATCH] MIPS: Correct MIPS16/microMIPS branch size calculation

2012-06-12 Thread Richard Henderson
On 2012-06-07 18:06, Maciej W. Rozycki wrote: > "Use MIPS_HFLAG_B16 to determine the address of a jump instruction when we > need to restart a delay slot instruction." > > and was not accompanied by a test case nor I have one offhand. > > However this change appears obviously correct to me, and

Re: [Qemu-devel] [PATCH] MIPS: Remove obsolete comment about OPC_JALX

2012-06-12 Thread Richard Henderson
On 2012-06-07 18:06, Maciej W. Rozycki wrote: > Someone was kind enough to push that change upstream on my behalf, but > somehow the piece to update the comment accordingly was missed and not > propagated. Here's an update to remove the obsolete and now misleading > comment. > > Signed-off-by

[Qemu-devel] [PATCH v2] qcow2: Simplify calculation for COW area at the end

2012-06-12 Thread Kevin Wolf
copy_sectors() always uses the sum (cluster_offset + n_start) or (start_sect + n_start), so if some value is added to both cluster_offset and start_sect, and subtracted from n_start, it's cancelled out anyway. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |5 ++--- 1 files changed, 2 i

Re: [Qemu-devel] one question on the makefile

2012-06-12 Thread Richard Yang
On Tue, Jun 12, 2012 at 10:50:33AM +0200, Paolo Bonzini wrote: >Il 12/06/2012 10:33, Wei Yang ha scritto: >> .PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS)) >> $(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: >> $(check-qtest-y) >> $(call quiet-command,QTEST_QEMU_BINARY=$

[Qemu-devel] [PATCH] Fix for qemu crash on assertion error when adding PCI passthru device.

2012-06-12 Thread Ma, Stephen B.
Title: Fix for qemu crash on assertion error when adding PCI passthru device. Description: On a kernel 3.4.0+ without having interrupt remapping enabled, starting a VM having a PCI passthrough device fails. ON q qemu-kvm built with --enable-debug, qemu aborts. Qemu-kvm is executed via virsh. Comm

[Qemu-devel] Qemu with Segmentation fault (core dumped)

2012-06-12 Thread Maurizio Caloro
Hello Qemu-group Compilation installation running without problem "QEMU emulator version 1.1.50", but if try to use Qemu in diffrent way i have the following "Segemntfault message" for any possible help iam Happy. Similar question Starting witout succsess in netbsdforum. regards Mauri # QEMU co

[Qemu-devel] [Bug 1012023] [NEW] Windows 7 bluescreen STOP: 00000005D

2012-06-12 Thread BRULE Herman
Public bug reported: Hello, with installed windows, or with install cd I have a blue screen (crash) after the first windows logo, see the screenshot. Thanks to fix it. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a membe

Re: [Qemu-devel] [PATCH] MIPS: Correct branch-likely single-stepping

2012-06-12 Thread Richard Henderson
On 2012-06-07 18:05, Maciej W. Rozycki wrote: > From: Nathan Froyd > > We have a problem with single-stepping branch-likely instructions. > Here's Nathan's original note: > > "[This] is a problem with single-stepping in QEMU: it manifests as > the program corrupting the register set--specific

Re: [Qemu-devel] [PATCH 2/9] alpha-linux-user: Work around hosted mmap allocation problems

2012-06-12 Thread Alexander Graf
On 12.06.2012, at 16:27, Richard Henderson wrote: > On 2012-06-12 07:12, Andreas Färber wrote: >> This looks fishy to me... why should the kernel use a bigger address >> space than hardware? For arm on x86_64 such a workaround was not >> necessary iirc. > > I can tell you what I observe. That

Re: [Qemu-devel] [PATCH v5] Release 0.11.0

2012-06-12 Thread Marc-André Lureau
ack On Tue, Jun 12, 2012 at 4:27 PM, Alon Levy wrote: > Current bumped and age bumped for new intefaces only (no backward > incompatible changes). > > New libtool version is 2.0.1, using --version-info instead of > --version-name. Doing the version change and --version-name to > --version-info ch

  1   2   3   >