Re: [Qemu-devel] [PATCH] sheepdog: implement SD_OP_FLUSH_VDI operation

2012-04-23 Thread Christoph Hellwig
On Tue, Apr 24, 2012 at 01:26:43AM +0900, MORITA Kazutaka wrote: > SD_FLAG_CMD_CACHE is ignored in the older version of Sheepdog, so, > even if we specify cache=writeback or cache=none, the data is written > with O_DSYNC always and cannot be cached in the server's page cache or > volatile disk cach

Re: [Qemu-devel] [PATCH v6 2/5] Implement i.MX31 Clock Control Module

2012-04-23 Thread Paolo Bonzini
Il 23/04/2012 22:54, Peter Chubb ha scritto: > Peter> What is this calculation supposed to do? It doesn't convert a > Peter> 10-bit signed twos-complement number into an int32_t, unless > Peter> I'm confused... Also, it's a rather opaque way to write "mfn &= > Peter> 0x200;". > > I'll use a differ

Re: [Qemu-devel] [SeaBIOS] [PATCH 05/12] pciinit: Track region alignment explicitly.

2012-04-23 Thread Gerd Hoffmann
On 04/24/12 08:17, Alexey Korolev wrote: > Don't round up bridge regions to the next highest size - instead track > alignment explicitly. This should improve the memory layout for > bridge regions. This one got mangled too: Applying: pciinit: Track region alignment explicitly. fatal: corrupt pat

Re: [Qemu-devel] [PATCH] Fix IDE FDC emulation for no media

2012-04-23 Thread Paolo Bonzini
Il 23/04/2012 18:06, Pavel Hrdina ha scritto: > Hi, > this is the patch to fix incorrect handling of IDE floppy drive controller > emulation > when no media is present. If the guest is booted without a media then the > drive > was not being emulated at all but this patch enables the emulation wit

Re: [Qemu-devel] [PATCH] ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs

2012-04-23 Thread Paolo Bonzini
Il 24/04/2012 08:29, Ronnie Sahlberg ha scritto: > Update the configure test for libiscsi support to detect version 1.3 or later. > Version 1.3 of libiscsi provides both READCAPACITY16 as well as UNMAP > commands. > > Update the iscsi block layer to use READCAPACITY16 to detect the size of the >

Re: [Qemu-devel] [PATCH] scsi refcounting fix?

2012-04-23 Thread Paolo Bonzini
Il 24/04/2012 07:02, David Gibson ha scritto: > So the patch below fixes my assertion failure, but again, I can't say > I understand this well enough to be confident - it might be leaking > scsi reqs instead. But if this isn't the right fix, I hope one of you > can help me find where the real refc

Re: [Qemu-devel] [SeaBIOS] [PATCH 10/12] Calculate pci region stats on demand

2012-04-23 Thread Alexey Korolev
A flowed text. Please apply another [10/12] in this series. On Tue, 2012-04-24 at 18:23 +1200, Alexey Korolev wrote: > Do not store pci region stats - instead calulate the > sum and alignment on demand. > > Signed-off-by: Alexey Korolev > --- > src/pciinit.c | 57 > ++

[Qemu-devel] [PATCH] ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs

2012-04-23 Thread Ronnie Sahlberg
Update the configure test for libiscsi support to detect version 1.3 or later. Version 1.3 of libiscsi provides both READCAPACITY16 as well as UNMAP commands. Update the iscsi block layer to use READCAPACITY16 to detect the size of the LUN instead of READCAPACITY10. This allows support for LUNs l

[Qemu-devel] [PATCH 0/1] Add support for iSCSI thin-provisioning

2012-04-23 Thread Ronnie Sahlberg
List, Please find a patch that updates the iscsi block device to provide support for 1, LUNs bigger than 2TB by switching to READCAPACITY16 2, Thin-provisioning by implementing bdrv_aio_discard using SCSI UNMAP commands. The unmapping/discard of blocks was done by booting a guest and using sg_w

[Qemu-devel] [PATCH 12/12] Fix 64bit PCI issues on Windows

2012-04-23 Thread Alexey Korolev
This patch solves issues on Windows guests, when 64bit BAR's are present. It is also helpful on Linux guests when use_crs kernel boot option is set. Signed-off-by: Alexey Korolev Signed-off-by: Michael S. Tsirkin --- src/acpi-dsdt.dsl |7 + src/acpi-dsdt.hex | 64 +

[Qemu-devel] [PATCH 11/12] Migrate 64bit entries to 64bit pci regions

2012-04-23 Thread Alexey Korolev
Migrate 64bit entries to 64bit pci regions if they do not fit in 32bit range. Signed-off-by: Alexey Korolev --- src/config.h |2 ++ src/pciinit.c | 50 ++ 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/con

[Qemu-devel] [PATCH 10/12] Calculate pci region stats on demand

2012-04-23 Thread Alexey Korolev
Do not store pci region stats - instead calulate the sum and alignment on demand. Signed-off-by: Alexey Korolev --- src/pciinit.c | 57 +++-- 1 files changed, 35 insertions(+), 22 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c inde

[Qemu-devel] [PATCH 10/12] Calculate pci region stats on demand

2012-04-23 Thread Alexey Korolev
Do not store pci region stats - instead calulate the sum and alignment on demand. Signed-off-by: Alexey Korolev --- src/pciinit.c | 57 +++-- 1 files changed, 35 insertions(+), 22 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index

[Qemu-devel] [PATCH 09/12] pciinit: 64bit capability discovery for pci bridges

2012-04-23 Thread Alexey Korolev
Add discovery if bridge region is 64bit is capable. Signed-off-by: Alexey Korolev --- src/pciinit.c | 26 +- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index f185cbd..0d66dbe 100644 --- a/src/pciinit.c +++ b/src/pciinit

[Qemu-devel] [PATCH 08/12] pciinit: Add pci_region structure.

2012-04-23 Thread Alexey Korolev
The pci_region structure is added. Move setting of bus base address to pci_region_map_entries. Signed-off-by: Alexey Korolev --- src/pciinit.c | 50 -- 1 files changed, 28 insertions(+), 22 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c

[Qemu-devel] [PATCH 07/12] pciinit: Switch to 64bit variable types.

2012-04-23 Thread Alexey Korolev
Switch to 64bit variable types. Add parsing 64bit bars. Original patch by: Gerd Hoffmann Signed-off-by: Kevin O'Connor --- src/pciinit.c | 116 ++--- 1 files changed, 61 insertions(+), 55 deletions(-) diff --git a/src/pciinit.c b/src/pciini

[Qemu-devel] [PATCH 06/12] pciinit: bridges can have two regions too

2012-04-23 Thread Alexey Korolev
Patch takes into account PCI bar and ROM regions of PCI bridges Original patch by: Gerd Hoffmann Signed-off-by: Kevin O'Connor Signed-off-by: Alexey Korolev --- src/pci.h |1 + src/pciinit.c |8 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pci.h b/src

[Qemu-devel] [PATCH 05/12] pciinit: Track region alignment explicitly.

2012-04-23 Thread Alexey Korolev
Don't round up bridge regions to the next highest size - instead track alignment explicitly. This should improve the memory layout for bridge regions. Also, unused bridge regions will no longer be allocated any space. Signed-off-by: Kevin O'Connor --- src/pciinit.c | 41 ++---

[Qemu-devel] [PATCH 04/12] pciinit: Use sorted order allocation

2012-04-23 Thread Alexey Korolev
Use sorted order allocation scheme instead of array based count scheme. Signed-off-by: Alexey Korolev Signed-off-by: Kevin O'Connor --- src/pciinit.c | 71 +--- 1 files changed, 7 insertions(+), 64 deletions(-) diff --git a/src/pciinit.c b/

[Qemu-devel] [PATCH 03/12] pciinit: Remove size element from pci_bus->r structure

2012-04-23 Thread Alexey Korolev
The 'size' element of pci_bus->r structure is no longer need as the information about bridge region size is already stored in pci_region_entry structure. Signed-off-by: Alexey Korolev Signed-off-by: Kevin O'Connor --- src/pciinit.c | 20 1 files changed, 8 insertions(+),

[Qemu-devel] [PATCH 02/12] pciinit: Move bus bar asignment

2012-04-23 Thread Alexey Korolev
Perform bus bar assignment at same time as normal bar assignment Signed-off-by: Kevin O'Connor Signed-off-by: Alexey Korolev --- src/pciinit.c | 53 ++--- 1 files changed, 18 insertions(+), 35 deletions(-) diff --git a/src/pciinit.c b/src/pcii

[Qemu-devel] [PATCH 01/12] pciinit: Introduction of pci_region_entry structure

2012-04-23 Thread Alexey Korolev
The pci_region_entry structure is introduced. The pci_device->bars are removed. The information from pci_region_entry is used to program pci bars. Signed-off-by: Alexey Korolev Signed-off-by: Kevin O'Connor --- src/pci.h |5 -- src/pciinit.c | 116

[Qemu-devel] [Patch 0/12] Pciinit redesign and 64bit PCI support

2012-04-23 Thread Alexey Korolev
This patch series redesigns and adds new features to pciinit.c code. [Patches 1-4] There are no more arrays of bases and counts in new implementation. The new implementation is based on dynamic allocation of pci_region_entry structures which are grouped into lists. Each pci_region_entry structure

[Qemu-devel] [PATCH] scsi refcounting fix?

2012-04-23 Thread David Gibson
Paolo, Kevin, I recently hit an assertion failure in the SCSI code (pseries machine), which I pinned down to a use-after-free of the BlockAcctCookie within a SCSIDiskReq. I can't say I understand the refcounting well enough to be confident of this, but when attempting to debug I noticed that the

Re: [Qemu-devel] Generating cachegrind output with qemu

2012-04-23 Thread Stefan Weil
Am 23.04.2012 18:18, schrieb Wacha Gábor: Dear developers, I am a Hungarian student trying to use qemu for profiling bare metal ARM programs for my student research. On the following page, it is mentioned that one can generate cachegrind output with qemu: http://www.monstr.eu/wiki/doku.php?id=

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-23 Thread ronnie sahlberg
On Mon, Apr 23, 2012 at 7:33 PM, Stefan Hajnoczi wrote: > On Sat, Apr 21, 2012 at 9:51 AM, Nicholas A. Bellinger > wrote: >> On Fri, 2012-04-20 at 12:09 +0100, Stefan Hajnoczi wrote: >>> On Fri, Apr 20, 2012 at 8:46 AM, Paolo Bonzini wrote: >>> > Il 20/04/2012 09:00, Nicholas A. Bellinger ha scr

[Qemu-devel] [PATCH v4] ARM: Exynos4210 IRQ: Introduce new IRQ gate functionality.

2012-04-23 Thread Evgeny Voevodin
New IRQ gate consists of n_in input qdev gpio lines and one output sysbus IRQ line. The output IRQ level is formed as OR between all gpio inputs. Signed-off-by: Evgeny Voevodin --- hw/exynos4210.c | 32 +++-- hw/exynos4210.h |2 +- hw/exynos4210_gic.c | 78 +++

Re: [Qemu-devel] [PATCH v4] ARM: Exynos4210 IRQ: Introduce new IRQ gate functionality.

2012-04-23 Thread Evgeny Voevodin
Sorry, sent an old version. New version will be in next answer. -- Kind regards, Evgeny Voevodin, Leading Software Engineer, ASWG, Moscow R&D center, Samsung Electronics e-mail: e.voevo...@samsung.com

[Qemu-devel] [PATCH v4] ARM: Exynos4210 IRQ: Introduce new IRQ gate functionality.

2012-04-23 Thread Evgeny Voevodin
New IRQ gate consists of n_in input qdev gpio lines and one output sysbus IRQ line. The output IRQ level is formed as OR between all gpio inputs. Signed-off-by: Evgeny Voevodin --- hw/exynos4210.c | 32 +++- hw/exynos4210.h |2 +- hw/exynos4210_gic.c | 79

[Qemu-devel] [PATCH v4] Exynos4210 IRQ Gate improvement

2012-04-23 Thread Evgeny Voevodin
This patch introduces new functionality of exynos4210 IRQ gate. Now it has n_in inputs and one output. Exynos SOC creates NCPU instances of IRQ gate with 2 inputs each instead of creating one gate with 4 inputs and 2 outputs. This device could be used as stand-alone, so, if somebody else needs th

[Qemu-devel] [PATCH 12/12 v14] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-04-23 Thread Wen Congyang
The command's usage: dump [-p] protocol [begin] [length] The supported protocol can be file or fd: 1. file: the protocol starts with "file:", and the following string is the file's path. 2. fd: the protocol starts with "fd:", and the following string is the fd's name. Note: 1. If you wa

[Qemu-devel] [PATCH 11/12 v14] make gdb_id() generally avialable and rename it to cpu_index()

2012-04-23 Thread Wen Congyang
The following patch also needs this API, so make it generally avialable. The function gdb_id() will not be used in gdbstub.c now, so its name is not suitable, and rename it to cpu_index() Signed-off-by: Wen Congyang --- gdbstub.c | 19 +-- gdbstub.h |9 + 2 files ch

[Qemu-devel] [PATCH 10/12 v14] target-i386: Add API to get note's size

2012-04-23 Thread Wen Congyang
We should know where the note and memory is stored before writing them to vmcore. If we know this, we can avoid using lseek() when creating vmcore. Signed-off-by: Wen Congyang --- cpu-all.h |6 ++ target-i386/arch_dump.c | 33 + 2 files cha

[Qemu-devel] [PATCH 09/12 v14] target-i386: add API to get dump info

2012-04-23 Thread Wen Congyang
Dump info contains: endian, class and architecture. The next patch will use these information to create vmcore. Note: on x86 box, the class is ELFCLASS64 if the memory is larger than 4G. Signed-off-by: Wen Congyang --- cpu-all.h |7 +++ dump.h | 23 +

[Qemu-devel] [PATCH 08/12 v14] target-i386: Add API to write cpu status to core file

2012-04-23 Thread Wen Congyang
The core file has register's value. But it does not include all registers value. Store the cpu status into QEMU note, and the user can get more information from vmcore. If you change QEMUCPUState, please count up QEMUCPUSTATE_VERSION. Signed-off-by: Wen Congyang --- cpu-all.h | 1

[Qemu-devel] [PATCH 07/12 v14] target-i386: Add API to write elf notes to core file

2012-04-23 Thread Wen Congyang
The core file contains register's value. These APIs write registers to core file, and them will be called in the following patch. Signed-off-by: Wen Congyang --- Makefile.target |1 + configure |4 + cpu-all.h | 22 + target-i386/arch_dump.c | 2

[Qemu-devel] [PATCH 06/12 v14] Add API to get memory mapping without do paging

2012-04-23 Thread Wen Congyang
crash does not need the virtual address and physical address mapping, and the mapping does not include the memory that is not referenced by the page table. crash does not use the virtual address, so we can create the mapping for all physical memory(virtual address is always 0). This patch provides

[Qemu-devel] [PATCH 05/12 v14] Add API to get memory mapping

2012-04-23 Thread Wen Congyang
Add API to get all virtual address and physical address mapping. If the guest doesn't use paging, the virtual address is equal to the phyical address. The virtual address and physical address mapping is for gdb's user, and it does not include the memory that is not referenced by the page table. So

[Qemu-devel] [PATCH 04/12 v14] Add API to check whether paging mode is enabled

2012-04-23 Thread Wen Congyang
This API will be used in the following patch. Signed-off-by: Wen Congyang --- cpu-all.h |6 ++ target-i386/arch_memory_mapping.c |7 ++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index bb43548..eb35415 100644 ---

[Qemu-devel] [PATCH 03/12 v14] implement cpu_get_memory_mapping()

2012-04-23 Thread Wen Congyang
Walk cpu's page table and collect all virtual address and physical address mapping. Then, add these mapping into memory mapping list. If the guest does not use paging, it will do nothing. Note: the I/O memory will be skipped. Signed-off-by: Wen Congyang --- Makefile.target |

[Qemu-devel] [PATCH 02/12 v14] Add API to check whether a physical address is I/O address

2012-04-23 Thread Wen Congyang
This API will be used in the following patch. Signed-off-by: Wen Congyang --- cpu-common.h |4 exec.c | 11 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index dca5175..1fe3280 100644 --- a/cpu-common.h +++ b/cpu-common.h

[Qemu-devel] [PATCH 01/12 v14] Add API to create memory mapping list

2012-04-23 Thread Wen Congyang
The memory mapping list stores virtual address and physical address mapping. The virtual address and physical address are contiguous in the mapping. The folloing patch will use this information to create PT_LOAD in the vmcore. Signed-off-by: Wen Congyang --- Makefile.target |1 + memory_map

[Qemu-devel] [PATCH 00/12 v14] introducing a new, dedicated guest memory dump mechanism

2012-04-23 Thread Wen Congyang
Hi, all 'virsh dump' can not work when host pci device is used by guest. We have discussed this issue here: http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html The last version is here: http://lists.nongnu.org/archive/html/qemu-devel/2012-04/msg02493.html We have determined to

Re: [Qemu-devel] [PATCH v3 1/4] SSI: Built in multiple device support

2012-04-23 Thread Peter Crosthwaite
Hi Paul, Im happy to spend the 10 mins updating stellaris.c accordingly, but is someone sitting on a binary package and brief instructions or some such to regression test it? Do you of this machine have some sort of kernel image handy? Peter 2012/4/21 Paul Brook : >>  /* QEMU Synchronous Serial

Re: [Qemu-devel] [PATCH 08/12 v13] target-i386: Add API to write cpu status to core file

2012-04-23 Thread Wen Congyang
At 04/24/2012 06:43 AM, Anthony Liguori Wrote: > On 04/18/2012 07:55 AM, Wen Congyang wrote: >> The core file has register's value. But it does not include all registers >> value. >> Store the cpu status into QEMU note, and the user can get more information >> from vmcore. If you change QEMUCPUSta

Re: [Qemu-devel] [PATCH 0/2] core dump: re-purpose VM_ALWAYSDUMP to user controlled VM_DONTDUMP

2012-04-23 Thread Michael Kerrisk
Jason, On Thu, Mar 8, 2012 at 6:00 AM, Jason Baron wrote: > Hi, > > The motivation for this change was that I was looking at a way for a qemu-kvm > process, to exclude the guest memory from its core dump, which can be quite > large. There are already a number of filter flags in > /proc//coredump_

[Qemu-devel] [Bug 965867] Re: 9p virtual file system on qemu slow

2012-04-23 Thread max
>>>Can you try with security_model=passthrough? It provides the same results, see below: $ dd if=/dev/zero of=test count=10 10+0 records in 10+0 records out 5120 bytes (51 MB) copied, 19.8581 s, 2.6 MB/s $ dd if=/dev/zero of=test count=10 bs=16384 10+0 records in 10+

[Qemu-devel] [Bug 965867] Re: 9p virtual file system on qemu slow

2012-04-23 Thread max
One of possible problems could be a block size. In this case I am using ZFS with raidZ 4+1 drives. Each drive has 4Kb block. So optimal block size is 16384 bytes. By optimizing block size it possible to improve performance 10 folds but 9p stably provides 10 folds worse performance than native write

Re: [Qemu-devel] Spice vdagent on SLED 11

2012-04-23 Thread Andrew Cathrow
- Original Message - > From: "Raj Rajasekaran" > To: qemu-devel@nongnu.org > Sent: Monday, April 23, 2012 11:35:56 AM > Subject: [Qemu-devel] Spice vdagent on SLED 11 > > I am not able to get Spice vdagent running on SLED 11 virtual > machine. Log file has the error message 'Missing vir

Re: [Qemu-devel] [PATCH 11/13] pseries: Convert sPAPR TCEs to use generic IOMMU infrastructure

2012-04-23 Thread David Gibson
On Mon, Apr 23, 2012 at 03:18:22PM -0500, Anthony Liguori wrote: > On 04/19/2012 11:16 PM, David Gibson wrote: > >The pseries platform already contains an IOMMU implementation, since it is > >essential for the platform's paravirtualized VIO devices. This IOMMU > >support is currently built into th

Re: [Qemu-devel] setjmp and longjmp in qemu

2012-04-23 Thread Xin Tong
so it is not possible to have a longjmp happening while an emulated cpu is in the middle of translating code ( i.e. in frontend or tcg). Xin On Mon, Apr 23, 2012 at 12:02 PM, Peter Maydell wrote: > On 23 April 2012 01:06, Xin Tong wrote: >> QEMU uses this very hard to understand setjmp and lon

Re: [Qemu-devel] [RFC PATCH 3/9][SeaBIOS] acpi: generate hotplug memory devices.

2012-04-23 Thread Kevin O'Connor
On Thu, Apr 19, 2012 at 04:08:41PM +0200, Vasilis Liaskovitis wrote: > The memory device generation is guided by qemu paravirt info. Seabios > first uses the info to setup SRAT entries for the hotplug-able memory slots. > Afterwards, build_memssdt uses the created SRAT entries to generate > app

Re: [Qemu-devel] [PATCH 08/12 v13] target-i386: Add API to write cpu status to core file

2012-04-23 Thread Anthony Liguori
On 04/18/2012 07:55 AM, Wen Congyang wrote: > The core file has register's value. But it does not include all registers > value. > Store the cpu status into QEMU note, and the user can get more information > from vmcore. If you change QEMUCPUState, please count up QEMUCPUSTATE_VERSION. > > Signed

Re: [Qemu-devel] [PATCH v6 5/5] FreeSCALE i.MX31 support: KZM-ARM11-01 evaluation board

2012-04-23 Thread Peter Chubb
> "Peter" == Peter Maydell writes: Peter> On 23 April 2012 00:31, Peter Chubb Peter> wrote: >> Board support for Kyoto Micro's KZM-ARM11-01, an evaluation board >> built around the FreeScale i.MX31. >> +    if (serial_hds[3]) { >> +        serial_mm_init(address_space_mem, KZM_FPGA, 0, >

[Qemu-devel] Generating cachegrind output with qemu

2012-04-23 Thread Wacha Gábor
Dear developers, I am a Hungarian student trying to use qemu for profiling bare metal ARM programs for my student research. On the following page, it is mentioned that one can generate cachegrind output with qemu: http://www.monstr.eu/wiki/doku.php?id=qemu:qemu#run_with_cachegrind Unfortunately

[Qemu-devel] [PATCH] Fix IDE FDC emulation for no media

2012-04-23 Thread Pavel Hrdina
Hi, this is the patch to fix incorrect handling of IDE floppy drive controller emulation when no media is present. If the guest is booted without a media then the drive was not being emulated at all but this patch enables the emulation with no media present. There was a bug in FDC emulation with

[Qemu-devel] Spice vdagent on SLED 11

2012-04-23 Thread Raj Rajasekaran
I am not able to get Spice vdagent running on SLED 11 virtual machine. Log file has the error message 'Missing virtio device '/dev/virtio-ports/com.redhat.spice.0'. I am using Qemu v0.15.1 and Spice v0.10.0. Has anyone got this work under SLED11? -Raj

Re: [Qemu-devel] [PATCH 4/4] memory: move functions is_romd and section_addr to memory API

2012-04-23 Thread Richard Henderson
On 04/22/12 08:35, Blue Swirl wrote: > Signed-off-by: Blue Swirl > --- > cputlb.h |6 -- > exec.c |8 > memory.h | 29 + > 3 files changed, 29 insertions(+), 14 deletions(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH 3/4] cputlb: prepare private memory API for public consumption

2012-04-23 Thread Richard Henderson
On 04/22/12 08:35, Blue Swirl wrote: > Fold is_ram_rom and is_ram_rom_romd() into callers. > > Change is_romd() and section_addr() to take MemoryRegion > instead of MemoryRegionSection for consistency and > use memory_region_ prefix. > > Signed-off-by: Blue Swirl > --- > cputlb.c | 12 ++-

Re: [Qemu-devel] [PATCH 2/4] cputlb: move TLB handling to a separate file

2012-04-23 Thread Richard Henderson
On 04/22/12 08:35, Blue Swirl wrote: > Move TLB handling and softmmu code load helpers to cputlb.c, > compile only for softmmu targets. > > Signed-off-by: Blue Swirl > --- > Makefile.target |2 +- > cputlb.c| 362 > cputlb.h

Re: [Qemu-devel] [PATCH 1/4] exec: prepare for splitting

2012-04-23 Thread Richard Henderson
On 04/22/12 08:35, Blue Swirl wrote: > Make s_cputlb_empty_entry 'const'. > > Rename tlb_flush_jmp_cache() to tb_flush_jmp_cache(). > > Refactor code to add cpu_tlb_reset_dirty_all(), > memory_region_section_get_iotlb() and > memory_region_is_unassigned(). > > Remove unused cpu_tlb_update_dirty(

Re: [Qemu-devel] [PATCH v6 2/5] Implement i.MX31 Clock Control Module

2012-04-23 Thread Peter Chubb
> "Peter" == Peter Maydell writes: Peter> On 23 April 2012 00:31, Peter Chubb Peter> wrote: Peter> Rather than having the *_clk_freq saved and loaded in the Peter> vmstate, I think it would be nicer to have a post-load-hook Peter> that called update_clocks(). OK. >>    /* mfn is 10-bit s

[Qemu-devel] [PATCH] block/qcow2: Add missing GCC_FMT_ATTR to function report_unsupported()

2012-04-23 Thread Stefan Weil
Cc: Kevin Wolf Signed-off-by: Stefan Weil --- block/qcow2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index ad46c03..d03e31c 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -182,7 +182,7 @@ static void cleanup_unknown_header_ext(Blo

Re: [Qemu-devel] [PATCH 1/1 v3] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-23 Thread Crístian Viana
On 13-04-2012 22:27, Peter Maydell wrote: Why 32 ? In that case, 32 was a estimative I made of the number of characters that the VERSION string would have based on its original value ("qemu usb-redir guest " QEMU_VERSION), so the new value wouldn't be much longer than the original one. I don't

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Luiz Capitulino
On Mon, 23 Apr 2012 14:44:27 -0600 Eric Blake wrote: > On 04/23/2012 01:38 PM, Anthony Liguori wrote: > >>> I like the approach of adding a new optional parameter; that is a > >>> workable solution for libvirt (that is, libvirt can assume that if the > >>> spelling 'block-stream' is available, th

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Eric Blake
On 04/23/2012 01:38 PM, Anthony Liguori wrote: >>> I like the approach of adding a new optional parameter; that is a >>> workable solution for libvirt (that is, libvirt can assume that if the >>> spelling 'block-stream' is available, then so is the optional 'speed' >>> parameter, if this patch is i

Re: [Qemu-devel] [PATCH 0/5] qemu-timer: Clean code

2012-04-23 Thread Stefan Weil
Am 23.04.2012 22:13, schrieb Anthony Liguori: On 04/20/2012 05:03 AM, Stefan Weil wrote: These patches remove timer code which is no longer needed and try to improve the remaining code. [PATCH 1/5] qemu-timer: Remove redundant include statements [PATCH 2/5] qemu-timer: Remove unused function qe

Re: [Qemu-devel] [PATCH v2] sdl: Add QEMU mascot icon for use with SDL

2012-04-23 Thread Anthony Liguori
On 04/23/2012 03:11 PM, Stefan Weil wrote: Am 13.04.2012 22:24, schrieb Stefan Weil: This is a bitmap file (32x32x4) derived from the official QEMU mascot (which was designed by Benoît Canet). I stripped the text from the SVG to get a nearly square image and converted the result to BMP without a

Re: [Qemu-devel] [PATCH 11/13] pseries: Convert sPAPR TCEs to use generic IOMMU infrastructure

2012-04-23 Thread Anthony Liguori
On 04/19/2012 11:16 PM, David Gibson wrote: The pseries platform already contains an IOMMU implementation, since it is essential for the platform's paravirtualized VIO devices. This IOMMU support is currently built into the implementation of the VIO "bus" and the various VIO devices. This patch

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Luiz Capitulino
On Mon, 23 Apr 2012 22:03:42 +0200 Paolo Bonzini wrote: > Il 23/04/2012 21:38, Luiz Capitulino ha scritto: > > On Mon, 23 Apr 2012 21:36:39 +0200 > > Paolo Bonzini wrote: > > > >> Il 23/04/2012 20:04, Luiz Capitulino ha scritto: > >>> The optional parameter is fine for me too, but we recently h

Re: [Qemu-devel] [RFC 0/2]: qemu-ga: drop automatic reaper

2012-04-23 Thread Luiz Capitulino
On Mon, 23 Apr 2012 09:14:18 -0500 Michael Roth wrote: > So, currently, libvirt waits indefinitely (till guest wake-up) for > the guest-suspend-* response? I think that's broken, since > guest-suspend-* is documented such that a response is not garaunteed, That's true, but there's a problem on o

Re: [Qemu-devel] [PATCH 0/5] qemu-timer: Clean code

2012-04-23 Thread Anthony Liguori
On 04/20/2012 05:03 AM, Stefan Weil wrote: These patches remove timer code which is no longer needed and try to improve the remaining code. [PATCH 1/5] qemu-timer: Remove redundant include statements [PATCH 2/5] qemu-timer: Remove unused function qemu_alarm_pending [PATCH 3/5] qemu-timer: Use bo

Re: [Qemu-devel] [PATCH v2] sdl: Add QEMU mascot icon for use with SDL

2012-04-23 Thread Stefan Weil
Am 13.04.2012 22:24, schrieb Stefan Weil: This is a bitmap file (32x32x4) derived from the official QEMU mascot (which was designed by Benoît Canet). I stripped the text from the SVG to get a nearly square image and converted the result to BMP without any manual optimization. The bitmap is curre

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Paolo Bonzini
Il 23/04/2012 21:38, Luiz Capitulino ha scritto: > On Mon, 23 Apr 2012 21:36:39 +0200 > Paolo Bonzini wrote: > >> Il 23/04/2012 20:04, Luiz Capitulino ha scritto: >>> The optional parameter is fine for me too, but we recently had a >>> discussion where it was decided that we should add new comman

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-04-23 Thread Eduardo Habkost
On Mon, Apr 23, 2012 at 06:31:25PM +0200, Jan Kiszka wrote: > On 2012-04-23 16:48, Eduardo Habkost wrote: > > Trying to summarize the points above: > > > > Groups (A) and (B) are: > > > > A) a feature that KVM supports and emulate by itself and can be enabled > >by userspace blindly, without

Re: [Qemu-devel] [PATCH] target-mips: Remove unused inline function

2012-04-23 Thread Stefan Weil
Am 19.03.2012 14:08, schrieb Stefan Weil: Am 19.03.2012 13:43, schrieb Andreas Färber: Am 19.03.2012 13:31, schrieb Stefan Weil: Am 19.03.2012 13:17, schrieb Stefan Hajnoczi: On Mon, Mar 19, 2012 at 10:33 AM, Andreas Färber wrote: Am 17.03.2012 13:00, schrieb Stefan Weil: Function set_HILO

[Qemu-devel] [Bug 965867] Re: 9p virtual file system on qemu slow

2012-04-23 Thread Iggy
Can you try with security_model=passthrough? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/965867 Title: 9p virtual file system on qemu slow Status in QEMU: New Status in “qemu-kvm” package in U

Re: [Qemu-devel] [PATCH] eepro100: Fix multicast regression

2012-04-23 Thread Michael S. Tsirkin
On Mon, Apr 23, 2012 at 09:46:57PM +0200, Stefan Weil wrote: > Am 10.04.2012 21:26, schrieb Michael S. Tsirkin: > >On Tue, Apr 10, 2012 at 08:48:54PM +0200, Stefan Weil wrote: > >>Commit 7fc8d918b9674c3e9233d6d25da2457345d414a0 removed code from > >>eepro100.c and replaced it by different code: the

Re: [Qemu-devel] [PATCH] eepro100: Fix multicast regression

2012-04-23 Thread Stefan Weil
Am 10.04.2012 21:26, schrieb Michael S. Tsirkin: On Tue, Apr 10, 2012 at 08:48:54PM +0200, Stefan Weil wrote: Commit 7fc8d918b9674c3e9233d6d25da2457345d414a0 removed code from eepro100.c and replaced it by different code: the code in net.c returns bits 31...26, but eepro100 needs bits 7...2.

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Anthony Liguori
On 04/23/2012 01:04 PM, Luiz Capitulino wrote: On Mon, 23 Apr 2012 11:33:27 -0600 Eric Blake wrote: On 04/23/2012 09:39 AM, Stefan Hajnoczi wrote: This series is based on Luiz' latest QMP pull request at git://repo.or.cz/qemu/qmp-unstable.git queue/qmp (d980956d5bfa9f4fd56c00a0b168c3c0f67bc0d

[Qemu-devel] [PATCH] qtest: Fix more format errors with qtest_sendf

2012-04-23 Thread Stefan Weil
After adding GCC_FMT_ATTR to qtest_sendf, more format errors are reported by the compiler. These are fixed here. Signed-off-by: Stefan Weil --- tests/libqtest.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/libqtest.c b/tests/libqtest.c index 1ce6fa1..295c6

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Luiz Capitulino
On Mon, 23 Apr 2012 21:36:39 +0200 Paolo Bonzini wrote: > Il 23/04/2012 20:04, Luiz Capitulino ha scritto: > > The optional parameter is fine for me too, but we recently had a > > discussion where it was decided that we should add new commands instead > > of extending existing ones. > > > > Anth

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Paolo Bonzini
Il 23/04/2012 20:04, Luiz Capitulino ha scritto: > The optional parameter is fine for me too, but we recently had a > discussion where it was decided that we should add new commands instead > of extending existing ones. > > Anthony, I believe we're already taking that position, right? This comman

Re: [Qemu-devel] [PATCH] qtest: fix memread and memwrite on 32 bit hosts

2012-04-23 Thread Stefan Weil
Am 23.04.2012 21:31, schrieb Blue Swirl: On Mon, Apr 23, 2012 at 19:13, Anthony Liguori wrote: On 04/23/2012 01:55 PM, Blue Swirl wrote: Use PRIx64 to print 64 bit values to avoid truncation on 32 bit hosts. Signed-off-by: Blue Swirl Reviewed-by: Anthony Liguori Tha

Re: [Qemu-devel] [PATCH] qtest: fix memread and memwrite on 32 bit hosts

2012-04-23 Thread Blue Swirl
On Mon, Apr 23, 2012 at 19:13, Anthony Liguori wrote: > On 04/23/2012 01:55 PM, Blue Swirl wrote: >> >> Use PRIx64 to print 64 bit values to avoid truncation >> on 32 bit hosts. >> >> Signed-off-by: Blue Swirl > > > Reviewed-by: Anthony Liguori Thanks for the review, applied. > > Regards, > > A

Re: [Qemu-devel] [PATCH] qtest: fix memread and memwrite on 32 bit hosts

2012-04-23 Thread Anthony Liguori
On 04/23/2012 01:55 PM, Blue Swirl wrote: Use PRIx64 to print 64 bit values to avoid truncation on 32 bit hosts. Signed-off-by: Blue Swirl Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- tests/libqtest.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] copy benchmarks onto qemu

2012-04-23 Thread Xin Tong
On Mon, Apr 23, 2012 at 4:38 AM, Kevin Wolf wrote: > Am 22.04.2012 18:37, schrieb Xin Tong: >> i have an OS image that does not have network drivers. are there any >> other ways to copy a benchmark onto the os image ? > > If it is a raw image you can use kpartx to get block devices on the host > t

[Qemu-devel] [PATCH] qtest: fix memread and memwrite on 32 bit hosts

2012-04-23 Thread Blue Swirl
Use PRIx64 to print 64 bit values to avoid truncation on 32 bit hosts. Signed-off-by: Blue Swirl --- tests/libqtest.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libqtest.c b/tests/libqtest.c index d47969e..1ce6fa1 100644 --- a/tests/libqtest.c +++ b/tests/li

Re: [Qemu-devel] [PATCH] fix BCD mask for date (Solaris 2.5 guest hang fix)

2012-04-23 Thread Andreas Färber
Am 23.04.2012 20:28, schrieb Artyom Tarasenko: > On Mon, Apr 23, 2012 at 7:34 PM, Andreas Färber wrote: >> Am 23.04.2012 18:48, schrieb Artyom Tarasenko: >>> On Mon, Apr 23, 2012 at 5:18 PM, Andreas Färber wrote: Ideally the patch would also indicate that it's about "m48t59: ". >>> >>> You m

Re: [Qemu-devel] Fwd: buildbot failure in qemu on rhel6-32bit

2012-04-23 Thread Blue Swirl
On Mon, Apr 23, 2012 at 09:16, Gerd Hoffmann wrote: > > > Original Message > Subject: buildbot failure in qemu on rhel6-32bit > Date: Mon, 23 Apr 2012 11:10:06 +0200 > From: build...@spunk.home.kraxel.org > To: kra...@gmail.com > > The Buildbot has detected a failed build on buil

Re: [Qemu-devel] [PATCH V4 6/8] hw/dma.c: replace register_ioport*

2012-04-23 Thread Anthony Liguori
On 04/12/2012 06:46 AM, Julien Grall wrote: This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall --- hw/dma.c | 108 + 1 files ch

Re: [Qemu-devel] [PATCH V4 4/8] hw/serial.c: replace register_ioport*

2012-04-23 Thread Anthony Liguori
On 04/12/2012 06:45 AM, Julien Grall wrote: This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall --- hw/mips_mipssim.c |3 ++- h

Re: [Qemu-devel] [PATCH V4 3/8] hw/cirrus_vga.c: replace register_ioport*

2012-04-23 Thread Anthony Liguori
On 04/12/2012 06:45 AM, Julien Grall wrote: This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall --- hw/cirrus_vga.c | 38 ++ 1 files changed, 22 insertions(+), 16 deleti

Re: [Qemu-devel] [PATCH] qcow2: Fix refcount block allocation during qcow2_allocate_cluster_at()

2012-04-23 Thread Marcelo Tosatti
On Mon, Apr 23, 2012 at 02:33:49PM +0200, Kevin Wolf wrote: > Am 23.04.2012 01:35, schrieb Marcelo Tosatti: > > On Sun, Apr 22, 2012 at 08:18:49PM -0300, Marcelo Tosatti wrote: > >> On Fri, Apr 20, 2012 at 03:56:01PM +0200, Kevin Wolf wrote: > >>> Refcount block allocation and refcount table growth

Re: [Qemu-devel] [PATCH 0/4] block: add optional 'speed' parameter to block-stream

2012-04-23 Thread Luiz Capitulino
On Mon, 23 Apr 2012 11:33:27 -0600 Eric Blake wrote: > On 04/23/2012 09:39 AM, Stefan Hajnoczi wrote: > > This series is based on Luiz' latest QMP pull request at > > git://repo.or.cz/qemu/qmp-unstable.git queue/qmp > > (d980956d5bfa9f4fd56c00a0b168c3c0f67bc0d2). This dependency is necessary > >

Re: [Qemu-devel] [PATCH V4 1/8] isa: add isa_address_space_io

2012-04-23 Thread Anthony Liguori
On 04/12/2012 06:45 AM, Julien Grall wrote: This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall --- hw/isa-bus.c |5 + hw/isa.h |1 + 2 files changed, 6 insertions(+), 0 dele

Re: [Qemu-devel] [PATCH] fix BCD mask for date (Solaris 2.5 guest hang fix)

2012-04-23 Thread Artyom Tarasenko
On Mon, Apr 23, 2012 at 7:34 PM, Andreas Färber wrote: > Am 23.04.2012 18:48, schrieb Artyom Tarasenko: >> On Mon, Apr 23, 2012 at 5:18 PM, Andreas Färber wrote: >>> Ideally the patch would also indicate that it's about "m48t59: ". >> >> You mean, like "[PATCH,m48t59] fix BCD mask for date (Solar

Re: [Qemu-devel] [PATCH 2/4] block: use Error mechanism instead of -errno for block_job_set_speed()

2012-04-23 Thread Luiz Capitulino
On Mon, 23 Apr 2012 17:47:09 +0200 Paolo Bonzini wrote: > Il 23/04/2012 17:39, Stefan Hajnoczi ha scritto: > > There are at least two different errors that can occur in > > block_job_set_speed(): the job might not support setting speeds or the > > value might be invalid. > > > > Use the Error me

Re: [Qemu-devel] [PATCH v2] pseries: Fix use of global CPU state

2012-04-23 Thread Andreas Färber
Am 23.04.2012 19:27, schrieb Peter Portante: > Commit ed120055c7f9b26b5707d3ceabbe5a3f06aaf937 (Implement PAPR VPA > functions for pSeries shared processor partitions) introduced the > register_dtl() function and typo "emv" as name of its argument. Mea culpa: deregister_dtl() > This went unnotice

Re: [Qemu-devel] [PATCH] fix BCD mask for date (Solaris 2.5 guest hang fix)

2012-04-23 Thread Andreas Färber
Am 23.04.2012 19:02, schrieb Blue Swirl: > On Mon, Apr 23, 2012 at 14:48, Artyom Tarasenko wrote: >> Fix BCD mask for date. The most visible effect of this patch is >> Solaris 2.5.1 doesn't hang at boot if the day of month is >21. > > Thanks, applied. Please take review comments you're being cc'

  1   2   3   >