Re: [Qemu-devel] [RFC] ATAPI-SCSI bridge GSoC project

2015-07-20 Thread Thomas Huth
On 18/07/15 20:49, Alexander Bezzubikov wrote: atapi: ATAPI-SCSI bridge device created private SCSI bus added to bridge ATAPI inquiry command can use a bridge Hi! Not everybody is familiar with your GSoC project, so it would be great if you could be a little bit more verbose in

[Qemu-devel] [RFC PATCH qemu 0/4] vfio: SPAPR IOMMU v2 (memory preregistration support)

2015-07-20 Thread Alexey Kardashevskiy
Yet another try, reworked the whole patchset. Here are few patches to prepare an existing listener for handling memory preregistration for SPAPR guests running on POWER8. This used to be a part of DDW patchset but now is separated as requested. Please comment. Thanks! Changes: v4: * have 2

[Qemu-devel] [RFC PATCH qemu 3/4] vfio: Use different page size for different IOMMU types

2015-07-20 Thread Alexey Kardashevskiy
The existing memory listener is called on RAM or PCI address space which implies potentially different page size. This uses new memory_region_iommu_get_page_sizes() for IOMMU regions or falls back to qemu_real_host_page_size if RAM. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes:

[Qemu-devel] [RFC PATCH qemu 1/4] memory: Add reporting of supported page sizes

2015-07-20 Thread Alexey Kardashevskiy
Every IOMMU has some granularity which MemoryRegionIOMMUOps::translate uses when translating, however this information is not available outside the translate context for various checks. This adds a get_page_sizes callback to MemoryRegionIOMMUOps and a wrapper for it so IOMMU users (such as VFIO)

[Qemu-devel] [RFC PATCH qemu 4/4] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-20 Thread Alexey Kardashevskiy
This makes use of the new memory registering feature. The idea is to provide the userspace ability to notify the host kernel about pages which are going to be used for DMA. Having this information, the host kernel can pin them all once per user process, do locked pages accounting (once) and not

[Qemu-devel] [RFC PATCH qemu 2/4] vfio: Generalize IOMMU memory listener

2015-07-20 Thread Alexey Kardashevskiy
At the moment VFIOContainer has an union for per IOMMU type data which is now an IOMMU memory listener and setup flags. The listener listens on PCI address space for both Type1 and sPAPR IOMMUs. The setup flags (@initialized and @error) are only used by Type1 now but the next patch will use it on

Re: [Qemu-devel] [PATCH v2] AioContext: fix broken placement of event_notifier_test_and_clear

2015-07-20 Thread Fam Zheng
On Mon, 07/20 07:27, Paolo Bonzini wrote: diff --git a/aio-win32.c b/aio-win32.c index ea655b0..7afc999 100644 --- a/aio-win32.c +++ b/aio-win32.c @@ -337,10 +337,11 @@ bool aio_poll(AioContext *ctx, bool blocking) aio_context_acquire(ctx); } -if (first

Re: [Qemu-devel] [RFC PATCH 2/2] spapr: -kernel: allow linking with specified addr

2015-07-20 Thread Thomas Huth
On 20/07/15 07:01, David Gibson wrote: On Fri, Jul 17, 2015 at 01:56:40PM +0200, Andrew Jones wrote: I've started playing with adding ppc support to kvm-unit-tests, using spapr for the machine model. I wanted to link the unit test at 0x40 to match qemu's load address, making the unit test

Re: [Qemu-devel] [PATCH v9 0/4] remove icc bus/bridge

2015-07-20 Thread Igor Mammedov
On Mon, 20 Jul 2015 09:00:06 +0800 Zhu Guihua zhugh.f...@cn.fujitsu.com wrote: On 07/16/2015 05:52 PM, Igor Mammedov wrote: On Thu, 16 Jul 2015 10:45:41 +0800 Zhu Guihua zhugh.f...@cn.fujitsu.com wrote: ping... I'll look at it once 2.4 is released. Got it, thanks. By the way,

[Qemu-devel] [POC] colo-proxy in qemu

2015-07-20 Thread Li Zhijian
Hi, all We are planning to implement colo-proxy in qemu to cache and compare packets. This module is one of the important component of COLO project and now it is still in early stage, so any comments and feedback are warmly welcomed, thanks in advance. ## Background COLO FT/HA (COarse-grain

Re: [Qemu-devel] [FIX PATCH] pc-dimm: Fail pc-dimm realization for invalid nodes in non-NUMA configuration

2015-07-20 Thread Igor Mammedov
On Fri, 17 Jul 2015 18:19:40 +0530 Bharata B Rao bhar...@linux.vnet.ibm.com wrote: pc_dimm_realize() validates the NUMA node to which memory hotplug is being performed only in case of NUMA configuration. Include a check to fail invalid nodes in case of non-NUMA configuration too.

Re: [Qemu-devel] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts

2015-07-20 Thread Aurelien Jarno
On 2015-07-20 09:33, Benjamin Herrenschmidt wrote: On Mon, 2015-07-20 at 01:01 +0200, Aurelien Jarno wrote: One way to improve this would be to reduce the size of a TLB entry. Currently we store the page address separately for read, write and code. The information is therefore quite

[Qemu-devel] [Bug 1469946] Re: guest can't get IP when create guest with bridge.

2015-07-20 Thread chao zhou
Does the bug's patch has merged in qemu.git? I test the latest qemu.git(commit:5b5e8cdd7da7a2214dd062afff5b866234aab228), the bug still can reproduce. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [PATCH] hostmem: Fix qemu_opt_get_bool() crash in host_memory_backend_init()

2015-07-20 Thread Igor Mammedov
On Fri, 17 Jul 2015 17:33:55 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Thu, Jul 16, 2015 at 11:02:14PM +0200, Igor Mammedov wrote: On Thu, 16 Jul 2015 17:39:17 -0300 Eduardo Habkost ehabk...@redhat.com wrote: This fixes the following crash, introduced by commit

Re: [Qemu-devel] [RFC PATCH 3/4] ppc: Use split I/D mmu modes to avoid flushes on interrupts

2015-07-20 Thread Benjamin Herrenschmidt
On Mon, 2015-07-20 at 09:11 +0200, Aurelien Jarno wrote: Understood. I did some tests showing that the number of instructions in the fast path doesn't not have a big performance impact. In that case, there is dependency between instructions, but anyway the CPU is likely to be stalled by the

Re: [Qemu-devel] [PULL for-2.4 0/1] virtio-rng: reduce wakeups

2015-07-20 Thread Peter Maydell
On 17 July 2015 at 14:49, Amit Shah amit.s...@redhat.com wrote: The following changes since commit 5b5e8cdd7da7a2214dd062afff5b866234aab228: Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20150717-1' into staging (2015-07-17 12:39:12 +0100) are available in the git repository

Re: [Qemu-devel] [PATCH v7 18/42] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages.

2015-07-20 Thread Amit Shah
On (Mon) 13 Jul 2015 [13:02:09], Juan Quintela wrote: +/* We're expecting a + *Version (0) + *a RAM ID string (length byte, name, 0 term) + *then at least 1 16 byte chunk +*/ +if (len 20) { 1 + 1+1+1+1+2*8 Humm, thinking about it,

Re: [Qemu-devel] [POC] colo-proxy in qemu

2015-07-20 Thread Stefan Hajnoczi
On Mon, Jul 20, 2015 at 02:42:33PM +0800, Li Zhijian wrote: We are planning to implement colo-proxy in qemu to cache and compare packets. I thought there is a kernel module to do that? Why does the proxy need to be part of the QEMU process? -netdev socket or host network stack features allow

Re: [Qemu-devel] [RFC] Virt machine memory map

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 09:55, Pavel Fedin p.fe...@samsung.com wrote: Hello! In our project we work on a very fast paravirtualized network I/O drivers, based on ivshmem. We successfully got ivshmem working on ARM, however with one hack. Currently we have: --- cut --- [VIRT_PCIE_MMIO] =

Re: [Qemu-devel] [libvirt] [PATCH] qxl: Fix new function name for spice-server library

2015-07-20 Thread Martin Kletzander
On Mon, Jul 20, 2015 at 09:43:23AM +0100, Frediano Ziglio wrote: The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream). By mistake I post patch with former name. This

[Qemu-devel] [Bug 1476183] [NEW] can not create 4 serial port on window (guest os)

2015-07-20 Thread feihu
Public bug reported: qemu ver: 2.1.2-Latest guest os: window 7 64bit with 2 cpu problem: when qemu start with 4 serial port, on linux(rhel 7) guest os, /dev/ttyS0-4 is work fine. but on window 7 guest os, only show com1,com2 in device manager, how to get com3 com4 ? qemu cmd: -chardev

Re: [Qemu-devel] [PATCH COLO-Frame v7 04/34] colo-comm/migration: skip colo info section for special cases

2015-07-20 Thread zhanghailiang
On 2015/7/18 1:07, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: For older machine types, we skip the colo info section when do migration, in this way, we can migrate successfully between older mainchine and the new one. We also skip this section if colo

[Qemu-devel] [PATCH] qxl: Fix new function name for spice-server library

2015-07-20 Thread Frediano Ziglio
The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream). By mistake I post patch with former name. This patch fix the function name. Signed-off-by: Frediano Ziglio

Re: [Qemu-devel] [PATCH] qxl: Fix new function name for spice-server library

2015-07-20 Thread Christophe Fergeau
On Mon, Jul 20, 2015 at 09:43:23AM +0100, Frediano Ziglio wrote: The new spice-server function to limit the number of monitors (0.12.6) changed while development from spice_qxl_set_monitors_config_limit to spice_qxl_max_monitors (accepted upstream). By mistake I post patch with former name.

[Qemu-devel] [RFC] Virt machine memory map

2015-07-20 Thread Pavel Fedin
Hello! In our project we work on a very fast paravirtualized network I/O drivers, based on ivshmem. We successfully got ivshmem working on ARM, however with one hack. Currently we have: --- cut --- [VIRT_PCIE_MMIO] = { 0x1000, 0x2eff }, [VIRT_PCIE_PIO] = {

Re: [Qemu-devel] [PATCH v7 18/42] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages.

2015-07-20 Thread Amit Shah
On (Tue) 16 Jun 2015 [11:26:31], Dr. David Alan Gilbert (git) wrote: From: Dr. David Alan Gilbert dgilb...@redhat.com The state of the postcopy process is managed via a series of messages; * Add wrappers and handlers for sending/receiving these messages * Add state variable that track

Re: [Qemu-devel] [PATCH v2] AioContext: fix broken placement of event_notifier_test_and_clear

2015-07-20 Thread Fam Zheng
On Mon, 07/20 15:46, Fam Zheng wrote: On Mon, 07/20 07:27, Paolo Bonzini wrote: diff --git a/aio-win32.c b/aio-win32.c index ea655b0..7afc999 100644 --- a/aio-win32.c +++ b/aio-win32.c @@ -337,10 +337,11 @@ bool aio_poll(AioContext *ctx, bool blocking)

Re: [Qemu-devel] [PULL for-2.4 0/7] update ipxe roms, fix efi support

2015-07-20 Thread Peter Maydell
On 17 July 2015 at 15:37, Gerd Hoffmann kra...@redhat.com wrote: Hi, This pull finally fixes the efi boot support. ipxe is updated to the latest master, two non-upstream commits needed to make efi work are added on top, and the build process is tweaked a bit. The ipxe changes are pushed

Re: [Qemu-devel] Accessing guest kernel thread_info struct

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 11:43, Igor R boost.li...@gmail.com wrote: I need to access thread_info (linux kernel struct) of the guest from within qemu, when the guest is in kernel mode. To do this, I read the stack pointer and mask it with ~(stack_size - 1). This works with x86 and ARM, but doesn't

Re: [Qemu-devel] [RFC] ATAPI-SCSI bridge GSoC project

2015-07-20 Thread Stefan Hajnoczi
On Sat, Jul 18, 2015 at 09:49:26PM +0300, Alexander Bezzubikov wrote: atapi: ATAPI-SCSI bridge device created private SCSI bus added to bridge ATAPI inquiry command can use a bridge Multiple items is a clue that this patch should be split up into patches with smaller logical

Re: [Qemu-devel] [PATCH 1/1] virtio-mmio: return the max queue num of virtio-mmio with initial value

2015-07-20 Thread Peter Maydell
On 16 July 2015 at 19:38, Wei Huang w...@redhat.com wrote: Recently we found that virtio-console devices consumes lots AArch64 guest memory, roughly 1GB with 8 devices. After debugging, it turns out that lots of factors contribute to this problem: i) guest PAGE_SIZE=64KB, ii) virtio-mmio based

Re: [Qemu-devel] [RFC] Virt machine memory map

2015-07-20 Thread Alexander Graf
On 07/20/15 11:41, Peter Maydell wrote: On 20 July 2015 at 09:55, Pavel Fedin p.fe...@samsung.com wrote: Hello! In our project we work on a very fast paravirtualized network I/O drivers, based on ivshmem. We successfully got ivshmem working on ARM, however with one hack. Currently we

Re: [Qemu-devel] Accessing guest kernel thread_info struct

2015-07-20 Thread Igor R
Thanks for the useful info! (Actually, my approach works as well - it was just endianness issue...)

Re: [Qemu-devel] [POC] colo-proxy in qemu

2015-07-20 Thread zhanghailiang
On 2015/7/20 18:32, Stefan Hajnoczi wrote: On Mon, Jul 20, 2015 at 02:42:33PM +0800, Li Zhijian wrote: We are planning to implement colo-proxy in qemu to cache and compare packets. I thought there is a kernel module to do that? Yes, but we decided to re-implement it in userspace (Here is

[Qemu-devel] [PULL 2/6] Revert vhost-user: add multi queue support

2015-07-20 Thread Michael S. Tsirkin
This reverts commit 830d70db692e374b5f4407f96a1ceefdcc97. The interface isn't fully backwards-compatible, which is bad. Let's redo this properly after 2.4. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- qapi-schema.json | 6 +- hw/net/vhost_net.c| 3 +--

[Qemu-devel] [PULL 3/6] virtio-net: unbreak any layout

2015-07-20 Thread Michael S. Tsirkin
From: Jason Wang jasow...@redhat.com Commit 032a74a1c0fcdd5fd1c69e56126b4c857ee36611 (virtio-net: byteswap virtio-net header) breaks any layout by requiring out_sg[0].iov_len = n-guest_hdr_len. Fixing this by copying header to temporary buffer if swap is needed, and then use this buffer as part

Re: [Qemu-devel] [PATCH for-2.4] disas/arm-a64: Add missing compiler attribute GCC_FMT_ATTR

2015-07-20 Thread Peter Maydell
On 18 July 2015 at 10:13, Peter Maydell peter.mayd...@linaro.org wrote: On 18 July 2015 at 09:27, Stefan Weil s...@weilnetz.de wrote: Type fprintf_function which fits here was defined with this attribute. Signed-off-by: Stefan Weil s...@weilnetz.de --- This is an optional trivial patch for

Re: [Qemu-devel] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-20 Thread Stefan Hajnoczi
On Fri, Jul 17, 2015 at 03:24:34PM -0400, Programmingkid wrote: On Jul 17, 2015, at 9:41 AM, Stefan Hajnoczi wrote: On Thu, Jul 16, 2015 at 04:46:07PM -0400, Programmingkid wrote: @@ -2014,7 +2015,9 @@ kern_return_t GetBSDPath( io_iterator_t mediaIterator, char *bsdPath, CFIndex ma

[Qemu-devel] Accessing guest kernel thread_info struct

2015-07-20 Thread Igor R
Hello, I need to access thread_info (linux kernel struct) of the guest from within qemu, when the guest is in kernel mode. To do this, I read the stack pointer and mask it with ~(stack_size - 1). This works with x86 and ARM, but doesn't seem to work with MIPS - the pointer points to something

Re: [Qemu-devel] [PATCH v2] pci_add_capability: remove duplicate comments

2015-07-20 Thread Chen, Hanxiao
-Original Message- From: qemu-devel-bounces+chenhanxiao=cn.fujitsu@nongnu.org [mailto:qemu-devel-bounces+chenhanxiao=cn.fujitsu@nongnu.org] On Behalf Of Chen Hanxiao Sent: Tuesday, July 14, 2015 4:16 PM To: Michael S. Tsirkin; qemu-devel@nongnu.org Subject: [Qemu-devel]

[Qemu-devel] [PATCH] exec.c: Use atomic_rcu_read() to access dispatch in memory_region_section_get_iotlb()

2015-07-20 Thread Peter Maydell
When accessing the dispatch pointer in an AddressSpace within an RCU critical section we should always use atomic_rcu_read(). Fix an access within memory_region_section_get_iotlb() which was incorrectly doing a direct pointer access. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- I

[Qemu-devel] [PULL 1/6] ich9: fix skipped vmstate_memhp_state subsection

2015-07-20 Thread Michael S. Tsirkin
From: Paulo Alcantara pca...@gmail.com By declaring another .subsections array for vmstate_tco_io_state made vmstate_memhp_state not registered anymore. There must be only one .subsections array for all subsections. Cc: Michael S. Tsirkin m...@redhat.com Cc: Amit Shah amit.s...@redhat.com

[Qemu-devel] [PULL 0/6] virtio, vhost, pc fixes for 2.4

2015-07-20 Thread Michael S. Tsirkin
The following changes since commit b4329bf41c86bac8b56cadb097081960cc4839a0: Update version for v2.4.0-rc1 release (2015-07-16 20:32:20 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream for you to fetch changes up to

[Qemu-devel] [PATCH v2] PAM: make PAM emulation closer to documentation

2015-07-20 Thread Efimov Vasily
This patch improves PAM emulation. PAM defines 4 memory access redirection modes. In mode 1 reads are directed to RAM and writes are directed to PCI. In mode 2 it is contrary. In mode 0 all access is directed to PCI. In mode 3 it is directed to RAM. Currently all modes are emulated using aliases.

[Qemu-devel] [PATCH] qcow2: Remove forward declaration of QCowAIOCB

2015-07-20 Thread Kevin Wolf
This struct doesn't exist any more since commit 3fc48d09 in August 2011, it's about time to remove its forward declaration. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/qcow2.h b/block/qcow2.h index 72e1328..46e1e80

Re: [Qemu-devel] [POC] colo-proxy in qemu

2015-07-20 Thread Li Zhijian
CC Wen Congyang On 07/20/2015 06:32 PM, Stefan Hajnoczi wrote: On Mon, Jul 20, 2015 at 02:42:33PM +0800, Li Zhijian wrote: We are planning to implement colo-proxy in qemu to cache and compare packets. I thought there is a kernel module to do that? Why does the proxy need to be part of the

[Qemu-devel] [PULL 4/6] pci_add_capability: remove duplicate comments

2015-07-20 Thread Michael S. Tsirkin
From: Chen Hanxiao chenhanx...@cn.fujitsu.com Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/pci/pci.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [RFC PATCH 1/2] spapr: add dumpdtb support

2015-07-20 Thread Andrew Jones
On Mon, Jul 20, 2015 at 02:02:33PM +1000, David Gibson wrote: On Fri, Jul 17, 2015 at 01:56:39PM +0200, Andrew Jones wrote: Signed-off-by: Andrew Jones drjo...@redhat.com Looks good to me, but I'd like an actual commit message: what's dumpdtb, how and why would you use it. Ok, just sent it

Re: [Qemu-devel] Creating a VM from an E01 file

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 14:03, Cervellone, Adam acervell...@ncdoj.gov wrote: My name is Adam Cervellone. I am a digital evidence intern at the North Carolina State Crime Laboratory. As part of my time here, I am conducting a research project using the SIFT workstation to make a virtual machine of

Re: [Qemu-devel] [RFC] Virt machine memory map

2015-07-20 Thread Igor Mammedov
On Mon, 20 Jul 2015 13:23:45 +0200 Alexander Graf ag...@suse.de wrote: On 07/20/15 11:41, Peter Maydell wrote: On 20 July 2015 at 09:55, Pavel Fedin p.fe...@samsung.com wrote: Hello! In our project we work on a very fast paravirtualized network I/O drivers, based on ivshmem. We

[Qemu-devel] [PULL 5/6] virtio-net: Flush incoming queues when DRIVER_OK is being set

2015-07-20 Thread Michael S. Tsirkin
From: Fam Zheng f...@redhat.com This patch fixes network hang after stop then cont, while network packets keep arriving. Tested both manually (tap, host pinging guest) and with Jason's qtest series (plus his [PATCH 2.4] socket: pass correct size in net_socket_send() fix). As

[Qemu-devel] [PULL 6/6] virtio-net: remove virtio queues if the guest doesn't support multiqueue

2015-07-20 Thread Michael S. Tsirkin
From: Wen Congyang we...@cn.fujitsu.com commit da51a335 adds all queues in .realize(). But if the guest doesn't support multiqueue, we forget to remove them. And we cannot handle the ctrl vq corretly. The guest will hang. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Reviewed-by: Michael S.

[Qemu-devel] R: Re: [PATCH v2] AioContext: fix broken placement of event_notifier_test_and_clear

2015-07-20 Thread Paolo Bonzini
I'm looking at optimizing it but I don't fully understand the relationship between aio_prepare and WaitForMultipleObjects. Do they get the same set of events? After some reading I think WaitForMultipleObjects is for event notifiers and aio_prepare is for select() on fd events. It's a

Re: [Qemu-devel] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-20 Thread Laurent Vivier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/07/2015 12:48, Stefan Hajnoczi wrote: On Fri, Jul 17, 2015 at 03:24:34PM -0400, Programmingkid wrote: On Jul 17, 2015, at 9:41 AM, Stefan Hajnoczi wrote: On Thu, Jul 16, 2015 at 04:46:07PM -0400, Programmingkid wrote: @@ -2014,7

Re: [Qemu-devel] [PATCH for-2.4] timer: rename NSEC_PER_SEC due to Mac OS X header clash

2015-07-20 Thread Peter Maydell
On 8 July 2015 at 15:10, Stefan Hajnoczi stefa...@redhat.com wrote: Commit e0cf11f31c24cfb17f44ed46c254d84c78e7f6e9 (timer: Use a single definition of NSEC_PER_SEC for the whole codebase) renamed NANOSECONDS_PER_SECOND to NSEC_PER_SEC. On Mac OS X there is a dispatch/time.h system header

Re: [Qemu-devel] [RFC PATCH 2/2] spapr: -kernel: allow linking with specified addr

2015-07-20 Thread Andrew Jones
On Mon, Jul 20, 2015 at 08:47:53AM +0200, Thomas Huth wrote: On 20/07/15 07:01, David Gibson wrote: On Fri, Jul 17, 2015 at 01:56:40PM +0200, Andrew Jones wrote: I've started playing with adding ppc support to kvm-unit-tests, using spapr for the machine model. I wanted to link the unit test

Re: [Qemu-devel] [POC] colo-proxy in qemu

2015-07-20 Thread Vasiliy Tolstov
2015-07-20 14:55 GMT+03:00 zhanghailiang zhang.zhanghaili...@huawei.com: Agreed, besides, it is seemed that slirp is not supporting ipv6, we also have to supplement it. patch for ipv6 slirp support some times ago sended to qemu list, but i don't know why in not accepted. -- Vasiliy Tolstov,

[Qemu-devel] [PATCH] spapr: add dumpdtb support

2015-07-20 Thread Andrew Jones
dumpdtb (-machine dumpdtb=file) allows one to inspect the generated device tree of machine types that generate device trees. This is useful for a) seeing what's there b) debugging/testing device tree generator patches. It can be used as follows $QEMU_CMDLINE -machine dumpdtb=dtb dtc -I dtb -O dts

Re: [Qemu-devel] [PATCH] qcow2: Remove forward declaration of QCowAIOCB

2015-07-20 Thread Eric Blake
On 07/20/2015 05:55 AM, Kevin Wolf wrote: This struct doesn't exist any more since commit 3fc48d09 in August 2011, it's about time to remove its forward declaration. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2.h | 2 -- 1 file changed, 2 deletions(-) Reviewed-by: Eric

Re: [Qemu-devel] [PULL 3/6] virtio-net: unbreak any layout

2015-07-20 Thread Eric Blake
On 07/20/2015 06:12 AM, Michael S. Tsirkin wrote: From: Jason Wang jasow...@redhat.com Commit 032a74a1c0fcdd5fd1c69e56126b4c857ee36611 (virtio-net: byteswap virtio-net header) breaks any layout by requiring out_sg[0].iov_len = n-guest_hdr_len. Fixing this by copying header to temporary

Re: [Qemu-devel] [PATCH for-2.5 4/8] s390x: Dump storage keys qmp command

2015-07-20 Thread Eric Blake
On 07/20/2015 07:49 AM, Cornelia Huck wrote: From: Jason J. Herne jjhe...@linux.vnet.ibm.com Provide a dump-skeys qmp command to allow the end user to dump storage keys. This is useful for debugging problems with guest storage key support within Qemu and for guest operating system

Re: [Qemu-devel] [PATCH] spapr: add dumpdtb support

2015-07-20 Thread Alexander Graf
On 07/20/15 15:19, Andrew Jones wrote: dumpdtb (-machine dumpdtb=file) allows one to inspect the generated device tree of machine types that generate device trees. This is useful for a) seeing what's there b) debugging/testing device tree generator patches. It can be used as follows

[Qemu-devel] [PATCH 1/2] vhost: add vhost_has_free_slot() interface

2015-07-20 Thread Igor Mammedov
it will allow for other parts of QEMU check if it's safe to map memory region during hotplug/runtime. That way hotplug path will have a chance to cancel hotplug operation instead of crashing in vhost_commit(). Signed-off-by: Igor Mammedov imamm...@redhat.com --- hw/virtio/vhost-backend.c

[Qemu-devel] [PATCH 2/2] pc-dimm: add vhost slots limit check before commiting to hotplug

2015-07-20 Thread Igor Mammedov
it allows safely cancel memory hotplug if vhost backend doesn't support necessary amount of memory slots and prevents QEMU crashing in vhost due to hitting vhost limit on amount of supported memory ranges. Signed-off-by: Igor Mammedov imamm...@redhat.com --- hw/mem/pc-dimm.c | 7 +++ 1 file

[Qemu-devel] [PATCH 0/2] vhost: check if vhost has capacity for hotplugged memory

2015-07-20 Thread Igor Mammedov
it's defensive patchset which helps to avoid QEMU crashing at memory hotplug time by checking that vhost has free capacity for an additional memory slot. Igor Mammedov (2): vhost: add vhost_has_free_slot() interface pc-dimm: add vhost slots limit check before commiting to hotplug

[Qemu-devel] [PATCH for-2.5 2/8] s390x: Create QOM device for s390 storage keys

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com A new QOM style device is provided to back guest storage keys. A special version for KVM is created, which handles the storage key access via KVM_S390_GET_SKEYS and KVM_S390_SET_SKEYS ioctl. Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com

Re: [Qemu-devel] Creating a VM from an E01 file

2015-07-20 Thread Cervellone, Adam
I apologize for my error. I have now re-run all the commands in the same order and attached a screen shot of the terminal window. I have selected desktop as the location for the VMDK file to be stored and it is included in the command after -O vmdk. Thank you, Adam Cervellone

Re: [Qemu-devel] Creating a VM from an E01 file

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 14:57, Cervellone, Adam acervell...@ncdoj.gov wrote: Your instructions say: 4.qemu-img convert /mnt/ewf1/E01 image file name -O vmdk give_a_name.vmdk but in your screenshot the command you run is: qemu-img convert /mnt/ewf1 -O vmdk

Re: [Qemu-devel] Creating a VM from an E01 file

2015-07-20 Thread Cervellone, Adam
I have now changed the command to qemu-img convert /mnt/ewf1/ewf1 -O vmdk /home/sansforensics/Desktop/Item1.vmdk and two things have happened. 1. An Item1.vmdk file is now on the desktop. Terminal just hangs after running the command. The cursor is blinking and the shell prompt has not

[Qemu-devel] Creating a VM from an E01 file

2015-07-20 Thread Cervellone, Adam
To whom it may concern, My name is Adam Cervellone. I am a digital evidence intern at the North Carolina State Crime Laboratory. As part of my time here, I am conducting a research project using the SIFT workstation to make a virtual machine of an E01 file. I've previously used this series

Re: [Qemu-devel] [RFC] Virt machine memory map

2015-07-20 Thread Alexander Graf
On 07/20/15 15:30, Igor Mammedov wrote: On Mon, 20 Jul 2015 13:23:45 +0200 Alexander Graf ag...@suse.de wrote: On 07/20/15 11:41, Peter Maydell wrote: On 20 July 2015 at 09:55, Pavel Fedin p.fe...@samsung.com wrote: Hello! In our project we work on a very fast paravirtualized network

[Qemu-devel] [PATCH for-2.5 1/8] s390x: add 2.5 compat s390-ccw-virtio machine

2015-07-20 Thread Cornelia Huck
Reviewed-by: Jason J. Herne jjhe...@linux.vnet.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/s390-virtio-ccw.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index

[Qemu-devel] [PATCH for-2.5 5/8] s390x: Dump-skeys hmp support

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com Add dump-skeys command to the human monitor. Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Jason J. Herne jjhe...@linux.vnet.ibm.com Signed-off-by: Cornelia Huck

[Qemu-devel] [PATCH for-2.5 0/8] s390x: storage key migration

2015-07-20 Thread Cornelia Huck
Here's the first batch of s390x patches I plan to send for 2.5. This one deals with storage keys, which may be set by guests and lacked a proper resting place so far. Introducing a device (that is backed by the KVM_S390_{SET,GET}_SKEYS ioctls in the kvm case) allows us to migrate them properly.

[Qemu-devel] [PATCH for-2.5 3/8] s390x: Enable new s390-storage-keys device

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com s390 guest initialization is modified to make use of new s390-storage-keys device. Old code that globally allocated storage key array is removed. The new device enables storage key access for kvm guests. Cache storage key QOM objects in frequently

[Qemu-devel] [PATCH for-2.5 7/8] s390x: Migrate guest storage keys (initial memory only)

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com Routines to save/load guest storage keys are provided. register_savevm is called to register them as migration handlers. We prepare the protocol to support more complex parameters. So we will later be able to support standby memory (having empty

[Qemu-devel] [PATCH for-2.5 4/8] s390x: Dump storage keys qmp command

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com Provide a dump-skeys qmp command to allow the end user to dump storage keys. This is useful for debugging problems with guest storage key support within Qemu and for guest operating system developers. Reviewed-by: Thomas Huth

[Qemu-devel] [PATCH for-2.5 6/8] s390x: Info skeys sub-command

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com Provide an info skeys hmp sub-command to allow the end user to dump a storage key for a given address. This is useful for guest operating system developers. Reviewed-by: Thomas Huth th...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand

[Qemu-devel] [PATCH for-2.5 8/8] s390x: Disable storage key migration on old machine type

2015-07-20 Thread Cornelia Huck
From: Jason J. Herne jjhe...@linux.vnet.ibm.com This code disables storage key migration when an older machine type is specified. Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Jason J. Herne jjhe...@linux.vnet.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com

Re: [Qemu-devel] [PATCH for-2.5 1/8] s390x: add 2.5 compat s390-ccw-virtio machine

2015-07-20 Thread Christian Borntraeger
Am 20.07.2015 um 15:49 schrieb Cornelia Huck: Reviewed-by: Jason J. Herne jjhe...@linux.vnet.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com for post 2.4 Acked-by: Christian Borntraeger borntrae...@de.ibm.com --- hw/s390x/s390-virtio-ccw.c | 18 +- 1 file

[Qemu-devel] [PULL 1/1] crypto: Fix aes_decrypt_wrapper()

2015-07-20 Thread Kevin Wolf
Commit d3462e3 broke qcow2's encryption functionality by using encrypt instead of decrypt in the wrapper function it introduces. This was found by qemu-iotests case 134. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Daniel P. Berrange berra...@redhat.com --- crypto/cipher-nettle.c | 2

[Qemu-devel] [PULL 0/1] Block layer patches for 2.4.0-rc2

2015-07-20 Thread Kevin Wolf
The following changes since commit 71358470eec668f5dc53def25e585ce250cea9bf: Merge remote-tracking branch 'remotes/amit-virtio-rng/tags/vrng-2.4' into staging (2015-07-17 15:22:45 +0100) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for you to

Re: [Qemu-devel] [POC] colo-proxy in qemu

2015-07-20 Thread Stefan Hajnoczi
On Mon, Jul 20, 2015 at 2:12 PM, Vasiliy Tolstov v.tols...@selfip.ru wrote: 2015-07-20 14:55 GMT+03:00 zhanghailiang zhang.zhanghaili...@huawei.com: Agreed, besides, it is seemed that slirp is not supporting ipv6, we also have to supplement it. patch for ipv6 slirp support some times ago

Re: [Qemu-devel] [PULL 0/6] virtio, vhost, pc fixes for 2.4

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 13:12, Michael S. Tsirkin m...@redhat.com wrote: The following changes since commit b4329bf41c86bac8b56cadb097081960cc4839a0: Update version for v2.4.0-rc1 release (2015-07-16 20:32:20 +0100) are available in the git repository at:

Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] ignore bdrv_flush operation when no qcow2 cache item is dirty

2015-07-20 Thread Eric Blake
[patches should always be sent to qemu-devel, even if qemu-block is also in the to/cc list] On 07/08/2015 01:26 AM, Qingshu Chen wrote: qcow2_cache_flush() writes dirty cache to the disk and invokes bdrv_flush() to make the data durable. But even if there is no dirty cache, qcow2_cache_flush()

Re: [Qemu-devel] [PATCH 09/10] qga: added bus type and disk location path

2015-07-20 Thread Eric Blake
On 07/06/2015 10:40 PM, Michael Roth wrote: From: Olga Krishtal okrish...@virtuozzo.com According to Microsoft disk location path can be obtained via IOCTL_SCSI_GET_ADDRESS. Unfortunately this ioctl can not be used for all devices. There are certain bus types which could be obtained with

[Qemu-devel] [PATCH v4 00/38] blockdev: BlockBackend and media

2015-07-20 Thread Max Reitz
First of all: Thank you, Eric and Berto, for reviewing v3! And thank you, Fam, for at least having a peek at it and being confident enough to base a series of your own on it. :-) This series reworks a lot regarding BlockBackend and media. Basically, it allows empty BlockBackends, that is BBs

Re: [Qemu-devel] [PATCH RFC v2 04/47] qapi-event: Clean up how name of enum QAPIEvent is made

2015-07-20 Thread Eric Blake
On 07/01/2015 02:21 PM, Markus Armbruster wrote: Use c_name() instead of ad hoc code. Doesn't upcase the -p prefix, which is an improvement in my book. Unbreaks prefix containing '.', but other funny characters remain broken. To be fixed next. Signed-off-by: Markus Armbruster

[Qemu-devel] [PATCH v4 03/38] iotests: Only create BB if necessary

2015-07-20 Thread Max Reitz
Tests 071 and 081 test giving references in blockdev-add. It is not necessary to create a BlockBackend here, so omit it. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by: Alberto Garcia be...@igalia.com --- tests/qemu-iotests/071 | 50

[Qemu-devel] [PATCH v4 29/38] blockdev: Add blockdev-insert-medium

2015-07-20 Thread Max Reitz
And a helper function for that, which directly takes a pointer to the BDS to be inserted instead of its node-name (which will be used for implementing 'change' using blockdev-insert-medium). Signed-off-by: Max Reitz mre...@redhat.com --- blockdev.c | 48

[Qemu-devel] [PATCH v4 10/38] hw/usb-storage: Check whether BB is inserted

2015-07-20 Thread Max Reitz
Only call bdrv_add_key() on the BlockDriverState if it is not NULL. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by: Alberto Garcia be...@igalia.com --- hw/usb/dev-storage.c | 30 -- 1 file changed, 16 insertions(+), 14

[Qemu-devel] [PATCH v4 13/38] block: Remove wr_highest_sector from BlockAcctStats

2015-07-20 Thread Max Reitz
BlockAcctStats contains statistics about the data transferred from and to the device; wr_highest_sector does not fit in with the rest. Furthermore, those statistics are supposed to be specific for a certain device and not necessarily for a BDS (see the comment above bdrv_get_stats()); on the

[Qemu-devel] [PATCH v4 26/38] blockdev: Add blockdev-open-tray

2015-07-20 Thread Max Reitz
Signed-off-by: Max Reitz mre...@redhat.com --- blockdev.c | 49 + qapi/block-core.json | 23 +++ qmp-commands.hx | 39 +++ 3 files changed, 111 insertions(+) diff --git

[Qemu-devel] [PATCH v4 36/38] hmp: Add read-only-mode option to change command

2015-07-20 Thread Max Reitz
Expose the new read-only-mode option of 'blockdev-change-medium' for the 'change' HMP command. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com --- hmp-commands.hx | 20 +--- hmp.c | 22 +- 2 files changed, 38

[Qemu-devel] [PATCH v4 21/38] block: Prepare for NULL BDS

2015-07-20 Thread Max Reitz
blk_bs() will not necessarily return a non-NULL value any more (unless blk_is_available() is true or it can be assumed to otherwise, e.g. because it is called immediately after a successful blk_new_with_bs() or blk_new_open()). Signed-off-by: Max Reitz mre...@redhat.com --- block.c |

[Qemu-devel] [PATCH v4 38/38] iotests: Add test for change-related QMP commands

2015-07-20 Thread Max Reitz
Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com --- tests/qemu-iotests/118 | 638 + tests/qemu-iotests/118.out | 5 + tests/qemu-iotests/group | 1 + 3 files changed, 644 insertions(+) create mode 100755

[Qemu-devel] [PATCH v4 31/38] blockdev: Implement change with basic operations

2015-07-20 Thread Max Reitz
Implement 'change' on block devices by calling blockdev-open-tray, blockdev-remove-medium, blockdev-insert-medium (a variation of that which does not need a node-name) and blockdev-close-tray. Signed-off-by: Max Reitz mre...@redhat.com --- blockdev.c | 187

Re: [Qemu-devel] Summary MTTCG related patch sets

2015-07-20 Thread Frederic Konrad
On 20/07/2015 19:41, alvise rigo wrote: Hi Alex, Thank you for this summary. Some comments below. On Mon, Jul 20, 2015 at 6:17 PM, Alex Bennée alex.ben...@linaro.org wrote: Hi, Following this afternoons call I thought I'd summarise the state of the various patch series and their relative

[Qemu-devel] [PULL 3/3] tests: Fix broken targets check-report-qtest-*

2015-07-20 Thread John Snow
From: Stefan Weil s...@weilnetz.de They need QTEST_QEMU_IMG. Without it, the tests raise an assertion: $ make -C bin check-report-qtest-i386.xml make: Entering directory 'bin' GTESTER check-report-qtest-i386.xml blkdebug: Suspended request 'A' blkdebug: Resuming request 'A' ahci-test:

Re: [Qemu-devel] [PATCH] No change in userland tools after resizing qcow2 image

2015-07-20 Thread John Snow
On 07/19/2015 05:24 AM, Taeha Kim wrote: Hello, There is no change in userland tools after resizing qcow2 image except file utility. For example when resize qcow2 image, the file utility is detectable increased size. However, the ls, “stat”, and “du” utility still don't know how many

  1   2   3   >