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

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 wrote: > > On 07/16/2015 05:52 PM, Igor Mammedov wrote: > > On Thu, 16 Jul 2015 10:45:41 +0800 > > Zhu Guihua wrote: > > > >> ping... > > I'll look at it once 2.4 is released. > > Got it, thanks. > > By the way, do you know what state of qemu sock

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 r

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 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 wrote: > > > > > This fixes the following crash, introduced by commit > > > 49d2e648e8087d154d8bf8b91f27c8e05e79d

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 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. > > Signed-off-by: Bharata B Rao Re

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 (f

[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 s

[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 s

[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 li

[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 --- Changes: * uses the sma

[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) c

[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. https://bugs.launchpad.net/bugs/14

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 b

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] = { 0x

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

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 09:55, Pavel Fedin 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] = { 0

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

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 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 at: > > https

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 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 to git://gi

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" > > 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 the current s

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) > > aio_con

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, thinkin

[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 spice

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 y

[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 that

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 wrote: > On 18 July 2015 at 09:27, Stefan Weil wrote: >> Type fprintf_function which fits here was defined with this attribute. >> >> Signed-off-by: Stefan Weil >> --- >> >> This is an optional trivial patch for 2.4 which fixes compiler warnings >> in my b

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, CFIn

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-dev

[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.

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

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 11:43, Igor R 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 seem to work with MI

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 ch

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 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 devices, an

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 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 ---

[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 --- I discussed this on IRC with P

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 in

[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 --- block/qcow2.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/qcow2.h b/block/qcow2.h index 72e1328..46e1e80 100644 --- a/block/qco

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 QEM

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

2015-07-20 Thread Michael S. Tsirkin
From: Paulo Alcantara 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 Cc: Amit Shah Reported-by: Amit Shah Signed-off-by: Paulo Alcantara Re

[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 f9d6dbf0

[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 --- qapi-schema.json | 6 +- hw/net/vhost_net.c| 3 +-- hw/virtio/vhost-user.c

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

2015-07-20 Thread Michael S. Tsirkin
From: Jason Wang 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 of out_sg. Fixes

[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 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 virtio_net_set_status is call

[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 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

[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. >

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:

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

2015-07-20 Thread Michael S. Tsirkin
From: Chen Hanxiao Signed-off-by: Chen Hanxiao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/pci/pci.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 442f822..a017614 100644 --- a/hw/pci/pci.c +++ b/hw/pci

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 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 system header which also > defines NSEC_PER_SE

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 u

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

2015-07-20 Thread Vasiliy Tolstov
2015-07-20 14:55 GMT+03:00 zhanghailiang : > 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, e-mail: v.tols...@selfip.ru

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

2015-07-20 Thread Andrew Jones
dumpdtb (-machine dumpdtb=) 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 dtb

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 > > 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 separately w

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 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 an > E01 file. I’ve

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 wrote: > On 07/20/15 11:41, Peter Maydell wrote: > > On 20 July 2015 at 09:55, Pavel Fedin wrote: > >> Hello! > >> > >> In our project we work on a very fast paravirtualized network I/O > >> drivers, based on ivshmem. We > >> successfully g

[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 of

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 wrote: On 07/20/15 11:41, Peter Maydell wrote: On 20 July 2015 at 09:55, Pavel Fedin wrote: Hello! In our project we work on a very fast paravirtualized network I/O drivers, based on ivshmem.

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=) 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 -m

[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 --- hw/mem/pc-dimm.c | 7 +++ 1 file changed, 7 insertion

[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 hw/mem/pc-d

[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 --- hw/virtio/vhost-backend.c | 23 ++

[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 Signed-off-by: Cornelia Huck --- 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 4c51d1a..708763e 100644 --- a/hw/s390x/s390-virtio-ccw.c ++

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

2015-07-20 Thread Cornelia Huck
From: "Jason J. Herne" Add dump-skeys command to the human monitor. Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand Signed-off-by: Jason J. Herne Signed-off-by: Cornelia Huck --- hmp-commands.hx | 16 hw/s390x/s390-skeys.c | 12

[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. A

[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" 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 used helper functions to

[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" 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 Signed-off-by: Jason J. Herne Signed-off-by: Corn

[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" 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 holes), compression and "st

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

2015-07-20 Thread Cornelia Huck
From: "Jason J. Herne" 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 Reviewed-by: David Hildenbrand Signed-off-by: Jason J. Herne Signed-off-by: Cornelia Hu

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

2015-07-20 Thread Cornelia Huck
From: "Jason J. Herne" 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 Reviewed-by: David Hildenbrand Signed-off-by:

[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" This code disables storage key migration when an older machine type is specified. Reviewed-by: David Hildenbrand Signed-off-by: Jason J. Herne Signed-off-by: Cornelia Huck --- hw/s390x/s390-skeys.c | 28 +--- hw/s390x/s390-virtio-ccw.c

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 -Original

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 > Signed-off-by: Cornelia Huck for post 2.4 Acked-by: Christian Borntraeger > --- > hw/s390x/s390-virtio-ccw.c | 18 +- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/hw/s390x/s390

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 wrote: Your instructions say: >> 4.qemu-img convert /mnt/ewf1/ -O vmdk >> .vmdk but in your screenshot the command you run is: qemu-img convert /mnt/ewf1 -O vmdk /home/sansforensics/Desktop/Item1.vmdk and you haven't filled in the 'E01 i

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 returne

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 > --- > block/qcow2.h | 2 -- > 1 file changed, 2 deletions(-) Reviewed-by: Eric Blake -- E

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 > > 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

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" > > 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:

[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 Reviewed-by: Daniel P. Berrange --- crypto/cipher-nettle.c | 2 +- 1 file changed, 1 insertion(+),

[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 f

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 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: > > git://git.kernel.org/pub/scm/virt/kvm/mst/qem

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 wrote: > 2015-07-20 14:55 GMT+03:00 zhanghailiang : >> 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 i

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 > > 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 this > API. Please, re

Re: [Qemu-devel] [PATCH v2 1/6] block: Add blocker on mirror target

2015-07-20 Thread Max Reitz
On 25.06.2015 05:22, Fam Zheng wrote: In block/backup.c, we already check and add blocker on the target bs, which is necessary so that it won't be intervened with other operations. In block/mirror.c we should also protect the mirror target bs, because it could have a node-name (drive-mirror ...

[Qemu-devel] [RFC PATCH] Fix hotplug/hotunplug issue about virtio 1.0 devices

2015-07-20 Thread Lin Ma
Hi Michael and Gerd, I found an hotplug/hotunplug issue about virtio 1.0 devices and trying to fix it. The bug description is: (qemu) device_add virtio-gpu-pci,id=gpu0 (qemu) device_del gpu0 (qemu) device_add virtio-gpu-pci,id=gpu0 Duplicate ID 'gpu0' for device Try "help device_add" for more i

Re: [Qemu-devel] [PATCH RFC v2 01/47] qapi: Clarify docs on including the same file multiple times

2015-07-20 Thread Eric Blake
On 07/01/2015 02:21 PM, Markus Armbruster wrote: > It's idempotent. > > Signed-off-by: Markus Armbruster > --- > docs/qapi-code-gen.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization

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

2015-07-20 Thread Denis V. Lunev
On 07/20/2015 06:06 PM, Eric Blake wrote: On 07/06/2015 10:40 PM, Michael Roth wrote: From: Olga Krishtal 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 o

Re: [Qemu-devel] [PATCH for-2.4 2/2] qom: Fix invalid error check in property_get_str()

2015-07-20 Thread Eric Blake
On 07/01/2015 09:47 AM, Markus Armbruster wrote: > When a function returns a null pointer on error and only on error, you > can do > > if (!foo(foos, errp)) { > ... handle error ... > } > > instead of the more cumbersome > > Error *err = NULL; > > if (!foo(foos, &err)) {

Re: [Qemu-devel] [PATCH v2 3/6] block: Extract blockdev part of qmp_drive_mirror

2015-07-20 Thread Max Reitz
On 25.06.2015 05:22, Fam Zheng wrote: This is the part that will be reused by blockdev-mirror. Signed-off-by: Fam Zheng --- blockdev.c | 155 - 1 file changed, 92 insertions(+), 63 deletions(-) As you probably know (since you intr

Re: [Qemu-devel] [PATCH v2 5/6] qmp: Add blockdev-mirror command

2015-07-20 Thread Max Reitz
On 25.06.2015 05:22, Fam Zheng wrote: This will start a mirror job from a named device to another named device, its relation with drive-mirror is similar with blockdev-backup to drive-backup. In blockdev-mirror, the target node should be prepared by blockdev-add, which will be responsible for as

Re: [Qemu-devel] [RFC PATCH] Fix hotplug/hotunplug issue about virtio 1.0 devices

2015-07-20 Thread Michael S. Tsirkin
On Mon, Jul 20, 2015 at 11:14:58PM +0800, Lin Ma wrote: > Hi Michael and Gerd, > > I found an hotplug/hotunplug issue about virtio 1.0 devices and trying to > fix it. > The bug description is: > (qemu) device_add virtio-gpu-pci,id=gpu0 > (qemu) device_del gpu0 At this point, you must wait for gue

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

2015-07-20 Thread Wei Huang
On 07/20/2015 06:07 AM, Peter Maydell wrote: > On 16 July 2015 at 19:38, Wei Huang 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

Re: [Qemu-devel] Poor disk I/O performance

2015-07-20 Thread Gleb Stepanov
Also, i want to say that qcow2 that was mounted on nb0 is placed on /dev/sda. Kind regards, Gleb Stepanov.

Re: [Qemu-devel] [PATCH] sheepdog: serialize requests to overwrapping area

2015-07-20 Thread Stefan Hajnoczi
On Sat, Jul 18, 2015 at 01:44:24AM +0900, Hitoshi Mitake wrote: > Current sheepdog driver only serializes create requests in oid > unit. This mechanism isn't enough for handling requests to > overwrapping area spanning multiple oids, so it can result bugs like > below: > https://bugs.launchpad.net/

[Qemu-devel] [PATCH] virtio-blk: use blk_io_plug/unplug for Linux AIO batching

2015-07-20 Thread Stefan Hajnoczi
The raw-posix block driver implements Linux AIO batching so multiple requests can be submitted with a single io_submit(2) system call. Batching is currently only used by virtio-scsi and virtio-blk-data-plane. Enable batching for regular virtio-blk so the number of io_submit(2) system calls is redu

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

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 15:54, Kevin Wolf wrote: > 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:

Re: [Qemu-devel] [PATCH] qemu-common.h: Document cutils.c string functions

2015-07-20 Thread Eric Blake
On 07/19/2015 02:34 PM, Peter Maydell wrote: > Add documentation comments for various utility string functions > which we have implemented in util/cutils.c: > pstrcpy() > strpadcpy() > pstrcat() > strstart() > stristart() > qemu_strnlen() > qemu_strsep() > > Signed-off-by: Peter Maydell >

[Qemu-devel] Summary MTTCG related patch sets

2015-07-20 Thread Alex Bennée
Hi, Following this afternoons call I thought I'd summarise the state of the various patch series and their relative dependencies. We re-stated the aim should be to get what is up-streamable through the review process and heading for merge so the delta for a full working MTTCG can be as low as poss

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

2015-07-20 Thread Programmingkid
On Jul 20, 2015, at 8:46 AM, Laurent Vivier wrote: > -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

  1   2   3   >