Re: [Qemu-devel] [question] How to get the guest physical memory usage from host?

2014-12-22 Thread Andrey Korolyov
On Mon, Dec 22, 2014 at 6:59 AM, Zhang Haoyu zhhy.zhangha...@gmail.com wrote: Hi, How to get the guest physical memory usage from host? I don't want to introduce a guest-agent to get the info. Thanks, Zhang Haoyu There`s probably one approach, simular to (currently abandoned) virt-dmesg,

[Qemu-devel] [PULL 3/5] bootdevice: add Error **errp argument for qemu_boot_set()

2014-12-22 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. Signed-off-by: Gonglei arei.gong...@huawei.com Reviewed-by: Markus Armbruster arm...@redhat.com --- bootdevice.c| 14

[Qemu-devel] [PULL 2/5] bootdevice: add Error **errp argument for validate_bootdevices()

2014-12-22 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. Signed-off-by: Gonglei arei.gong...@huawei.com Reviewed-by: Markus Armbruster arm...@redhat.com --- bootdevice.c| 10

[Qemu-devel] [PULL 5/5] bootdevice: add Error **errp argument for QEMUBootSetHandler

2014-12-22 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. For x86 architecture, we pass local_err to set_boot_dev() when vm startup in pc_coms_init(). Cc: Michael S. Tsirkin m...@redhat.com

[Qemu-devel] [PULL 0/5] bootdevice: Refactor and improvement

2014-12-22 Thread arei.gonglei
tags/bootdevice-next-20141222 for you to fetch changes up to ddcd55316fb2851e144e719171621ad2816487dc: bootdevice: add Error **errp argument for QEMUBootSetHandler (2014-12-22 14:39:21 +0800) bootdevice: Refactor and improvement

[Qemu-devel] [PULL 4/5] bootdevice: add validate check for qemu_boot_set()

2014-12-22 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Reviewed-by: Markus Armbruster arm...@redhat.com --- bootdevice.c |8 1 file changed, 8 insertions(+) diff --git a/bootdevice.c b/bootdevice.c index 7f07507..9de34ba 100644 --- a/bootdevice.c +++

[Qemu-devel] [PULL 1/5] bootdevice: move code about bootorder from vl.c to bootdevice.c

2014-12-22 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com First, we can downsize vl.c, make it simpler by little and little. Second, I can maintain those code and make some improvement. Cc: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Gonglei arei.gong...@huawei.com Reviewed-by: Markus Armbruster

Re: [Qemu-devel] [question] How to get the guest physical memory usage from host?

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 16:41, Andrey Korolyov wrote: On Mon, Dec 22, 2014 at 6:59 AM, Zhang Haoyu zhhy.zhangha...@gmail.com wrote: Hi, How to get the guest physical memory usage from host? I don't want to introduce a guest-agent to get the info. Thanks, Zhang Haoyu There`s probably one

[Qemu-devel] [PATCH V2 0/2] Add virtio endianness determination in KVM ARM/ARM64

2014-12-22 Thread Pranavkumar Sawargaonkar
In KVM ARM/ARM64 one can run cross-endian guset with respect to host kernel. For virtio to work with this we need to make virtio code aware of guest's endianness. This patchset adds the guest endianness determination for KVM ARM/ARM64 and related small fix in KVM ARM64. V2: - Change the patch to

[Qemu-devel] [PATCH 1/3] guest agent: guest-file-open: refactoring

2014-12-22 Thread Denis V. Lunev
From: Simon Zolin szo...@parallels.com Moved the code that sets non-blocking flag on fd into a separate function. Signed-off-by: Simon Zolin szo...@parallels.com Acked-by: Roman Kagan rka...@parallels.com Signed-off-by: Denis V. Lunev d...@openvz.org CC: Michael Roth mdr...@linux.vnet.ibm.com

[Qemu-devel] [PATCH V2 2/2] target-arm: Guest cpu endianness determination for virtio KVM ARM/ARM64

2014-12-22 Thread Pranavkumar Sawargaonkar
This patch implements a fucntion pointer virtio_is_big_endian() from CPUClass structure for arm/arm64. Function arm_cpu_virtio_endianness() is added to determine and return the guest cpu endianness to virtio. This is required for running cross endian guests with virtio on ARM/ARM64. Changelog:

[Qemu-devel] [PATCH 2/3] guest agent: add guest-pipe-open

2014-12-22 Thread Denis V. Lunev
From: Simon Zolin szo...@parallels.com Creates a FIFO pair that can be used with existing file read/write interfaces to communicate with processes spawned via the forthcoming guest-file-exec interface. Signed-off-by: Simon Zolin szo...@parallels.com Acked-by: Roman Kagan rka...@parallels.com

[Qemu-devel] [PATCH V2 1/2] target-arm: KVM64: Get and Sync up guest register state like kvm32.

2014-12-22 Thread Pranavkumar Sawargaonkar
This patch adds: 1. Call write_kvmstate_to_list() and write_list_to_cpustate() in kvm_arch_get_registers() to sync guest register state. 2. Call write_list_to_kvmstate() in kvm_arch_put_registers() to sync guest register state. These changes are already there for kvm32 in

[Qemu-devel] [PATCH 3/3] guest agent: add guest-exec and guest-exec-status interfaces

2014-12-22 Thread Denis V. Lunev
From: Simon Zolin szo...@parallels.com Interfaces to execute/manage processes in the guest. Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfaces. Signed-off-by: Simon Zolin szo...@parallels.com Acked-by: Roman Kagan rka...@parallels.com

[Qemu-devel] [PATCH 0/3] qemu: guest agent: implement guest-exec command for Linux

2014-12-22 Thread Denis V. Lunev
These patches for guest-agent add the functionality to execute commands on a guest UNIX machine. These patches add the following interfaces: guest-pipe-open guest-exec guest-exec-status With these interfaces it's possible to: * Open an anonymous pipe and work with it as with a file using

Re: [Qemu-devel] [question] How to get the guest physical memory usage from host?

2014-12-22 Thread Andrey Korolyov
On Mon, Dec 22, 2014 at 11:57 AM, Zhang Haoyu zhhy.zhangha...@gmail.com wrote: On 2014/12/22 16:41, Andrey Korolyov wrote: On Mon, Dec 22, 2014 at 6:59 AM, Zhang Haoyu zhhy.zhangha...@gmail.com wrote: Hi, How to get the guest physical memory usage from host? I don't want to introduce a

Re: [Qemu-devel] [question] How to get the guest physical memory usage from host?

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:16, Andrey Korolyov wrote: On Mon, Dec 22, 2014 at 11:57 AM, Zhang Haoyu zhhy.zhangha...@gmail.com wrote: On 2014/12/22 16:41, Andrey Korolyov wrote: On Mon, Dec 22, 2014 at 6:59 AM, Zhang Haoyu zhhy.zhangha...@gmail.com wrote: Hi, How to get the guest physical memory

Re: [Qemu-devel] Does kvm friendly support GPT?

2014-12-22 Thread Paolo Bonzini
On 22/12/2014 07:39, Zhang Haoyu wrote: Hi, When I perform P2V from native servers with win2008 to kvm vm, some cases failed due to the physical disk was using GPT for partition, and QEMU doesn't support GPT by default. And, I see in below site that OVMF can be used to enable UEFI to

Re: [Qemu-devel] [PATCH v3 0/2] balloon: add a feature bit to let Guest OS deflate virtio_balloon on OOM

2014-12-22 Thread Denis V. Lunev
On 15/12/14 13:03, Denis V. Lunev wrote: On 27/11/14 15:44, Denis V. Lunev wrote: Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it

Re: [Qemu-devel] [question] How to get the guest physical memory usage from host?

2014-12-22 Thread Andrey Korolyov
Yes, it should depends on guest os implementation, because physical memory is managed by OS, which have the full knowledge of memory usage, so I'm afraid that windows dose not friendly support it. Could you detail the peeking techniques mentioned above? Thanks, Zhang Haoyu Generally I

Re: [Qemu-devel] [RFC V9 4/4] domain snapshot design: libxl/libxlu

2014-12-22 Thread Chun Yan Liu
On 12/19/2014 at 06:38 PM, in message 1418985490.20028.27.ca...@citrix.com, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2014-12-18 at 23:58 -0700, Chun Yan Liu wrote: On 12/18/2014 at 11:27 PM, in message 1418916436.11882.101.ca...@citrix.com, Ian Campbell

Re: [Qemu-devel] Does kvm friendly support GPT?

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:28, Paolo Bonzini wrote: On 22/12/2014 07:39, Zhang Haoyu wrote: Hi, When I perform P2V from native servers with win2008 to kvm vm, some cases failed due to the physical disk was using GPT for partition, and QEMU doesn't support GPT by default. And, I see in below

[Qemu-devel] qemu-img:the sheepdog snapshot vdi's lock will not be released when use qemu-img to create a snapshot vdi

2014-12-22 Thread 徐小龙
hi,all, when i use `qemu-img snapshot -c test-s sheepdog:test` to create a snapshot of sheepdog vdi,the snapshot's lock not be released. root@hty-compute1:~/qemu# ./qemu-img create sheepdog:test 1G Formatting 'sheepdog:test', fmt=raw size=1073741824 root@hty-compute1:~/qemu# dog vdi list

[Qemu-devel] cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? Thanks, Zhang Haoyu

Re: [Qemu-devel] Does kvm friendly support GPT?

2014-12-22 Thread Paolo Bonzini
On 22/12/2014 10:40, Zhang Haoyu wrote: 2) the FAT driver is not free, which prevents distribution in Fedora and several other distributions Sorry, I cannot follow you, the FAT mentioned above means FAT filesystem? what's the relationship between OVMF and FAT? I want to use OVMF to

Re: [Qemu-devel] cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Paolo Bonzini
On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? For qemu-devel, you need to configure mailman to send messages even if they are yours. For the kvm mailing list I'm not sure how it works

Re: [Qemu-devel] Does kvm friendly support GPT?

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:52, Paolo Bonzini wrote: On 22/12/2014 10:40, Zhang Haoyu wrote: 2) the FAT driver is not free, which prevents distribution in Fedora and several other distributions Sorry, I cannot follow you, the FAT mentioned above means FAT filesystem? what's the relationship

Re: [Qemu-devel] [PATCH RFC for-2.3 1/6] qga: introduce three guest memory block commands with stubs

2014-12-22 Thread zhanghailiang
On 2014/12/22 4:10, Michael Roth wrote: Quoting zhanghailiang (2014-12-06 00:59:14) Introduce three new guest commands: guest-get-memory-blocks, guest-set-memory-blocks, guest-get-memory-block-size. With these three commands, we can support online/offline guest's memory block (logical memory

Re: [Qemu-devel] [PATCH RFC for-2.3 2/6] qga: introduce three help functions for memory block functions

2014-12-22 Thread zhanghailiang
On 2014/12/22 4:58, Michael Roth wrote: Quoting zhanghailiang (2014-12-06 00:59:15) Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- qga/commands-posix.c | 130 +++ 1 file changed, 130 insertions(+) diff --git

Re: [Qemu-devel] [PATCH RFC for-2.3 3/6] qga: implement qmp_guest_get_memory_blocks() for Linux with sysfs

2014-12-22 Thread zhanghailiang
On 2014/12/22 5:17, Michael Roth wrote: Quoting zhanghailiang (2014-12-06 00:59:16) We can get guest's memory block information by using command guest-get-memory-blocks, the returned value contains a list of memory block info, such as phys_index, online state, can-offline info. Signed-off-by:

Re: [Qemu-devel] [PATCH RFC for-2.3 4/6] qga: implement qmp_guest_set_memory_blocks() for Linux with sysfs

2014-12-22 Thread zhanghailiang
On 2014/12/22 5:23, Michael Roth wrote: Quoting zhanghailiang (2014-12-06 00:59:17) Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com --- qga/commands-posix.c | 42 +++--- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git

Re: [Qemu-devel] [PATCH RFC for-2.3 5/6] qga: implement qmp_guest_get_memory_block_size() for Linux with sysfs

2014-12-22 Thread zhanghailiang
On 2014/12/22 5:41, Michael Roth wrote: Quoting zhanghailiang (2014-12-06 00:59:18) The size of a memory block is architecture dependent, For example, power uses 16MiB, ia64 uses 1GiB, x86 uses 128M. That's the minimum for Power, but the size can be set via device tree and can differ from one

Re: [Qemu-devel] [PULL 00/12] sdl2: fixes, cleanups and opengl preparation.

2014-12-22 Thread Peter Maydell
On 19 December 2014 at 09:16, Gerd Hoffmann kra...@redhat.com wrote: Hi, So, here we go with the sdl2 pull request, no changes to v2 patches series other than adding the two fixes from Max. please pull, Gerd The following changes since commit dfa9c2a0f4d0a0c8b2c1449ecdbb1297427e1560:

Re: [Qemu-devel] [PULL 00/19] Block patches

2014-12-22 Thread Peter Maydell
On 19 December 2014 at 16:34, Kevin Wolf kw...@redhat.com wrote: The following changes since commit dfa9c2a0f4d0a0c8b2c1449ecdbb1297427e1560: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-12-15 16:43:42 +) are available in the git repository at:

Re: [Qemu-devel] cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? For qemu-devel, you need to configure mailman to send messages even if they are yours. For

Re: [Qemu-devel] cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Paolo Bonzini
On 22/12/2014 12:40, Zhang Haoyu wrote: On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? For qemu-devel, you need to configure mailman to send

Re: [Qemu-devel] [PULL 00/19] Block patches

2014-12-22 Thread Peter Maydell
On 22 December 2014 at 11:14, Peter Maydell peter.mayd...@linaro.org wrote: Hi. I'm afraid this fails make check on MacOSX: /Users/pm215/src/qemu/tests/qemu-iotests-quick.sh /Users/pm215/src/qemu/tests/qemu-iotests/common.config: line 158: /bin/true: No such file or directory check: failed to

[Qemu-devel] [PATCH v6 00/11] fw_cfg, bootorder, and UEFI+'-kernel' on arm/virt

2014-12-22 Thread Paolo Bonzini
The only change from v5 to v6 is that sysbus_mmio_map is moved to fw_cfg_init_mem. (And fw_cfg_init1 returns void because it's now simpler that way). This causes changes in patches 1, 5 and 6. I did not have the ARM firmware built, so I tested on PPC to check for compatibility, and played with

[Qemu-devel] [PATCH v6 01/11] fw_cfg: hard separation between the MMIO and I/O port mappings

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com We are going to introduce a wide data register for fw_cfg, but only for the MMIO mapped device. The wide data register will also require the tightening of endiannesses. However we don't want to touch the I/O port mapped fw_cfg device at all. Currently QEMU

[Qemu-devel] [PATCH v6 08/11] arm: add fw_cfg to virt board

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com fw_cfg already supports exposure over MMIO (used in ppc/mac_newworld.c, ppc/mac_oldworld.c, sparc/sun4m.c); we can easily add it to the virt board. Because MMIO access is slow on ARM KVM, we enable the guest, with fw_cfg_init_mem_wide(), to transfer up to 8

[Qemu-devel] [PATCH v6 02/11] fw_cfg: move boards to fw_cfg_init_io() / fw_cfg_init_mem()

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com This allows us to drop the fw_cfg_init() shim and to enforce the possible mappings at compile time. Signed-off-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/i386/pc.c | 4 ++-- hw/nvram/fw_cfg.c

[Qemu-devel] [PATCH v6 03/11] fw_cfg_mem: max access size and region size are the same for data register

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com Make it clear that the maximum access size to the MMIO data register determines the full size of the memory region. Currently the max access size is 1. This patch doesn't change behavior. Signed-off-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Paolo

[Qemu-devel] [PATCH v6 05/11] exec: allows 8-byte accesses in subpage_ops

2014-12-22 Thread Paolo Bonzini
Otherwise fw_cfg accesses are split into 4-byte ones before they reach the fw_cfg ops / handlers. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- exec.c | 13 +++-- 1 file changed, 11

[Qemu-devel] [PATCH v6 09/11] hw/loader: split out load_image_gzipped_buffer()

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com In the next patch we'd like to reuse the image decompression facility without installing the output as a ROM at a specific guest-phys address. In addition, expose LOAD_IMAGE_MAX_GUNZIP_BYTES, because that's a straightforward max_sz argument for the new

[Qemu-devel] [PATCH v6 04/11] fw_cfg_mem: flip ctl_mem_ops and data_mem_ops to DEVICE_BIG_ENDIAN

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com The standalone selector port (fw_cfg_ctl_mem_ops) is only used by big endian guests to date (*), hence this change doesn't regress them. Paolo and Alex have suggested / requested an explicit DEVICE_BIG_ENDIAN setting here, for clarity. (*) git grep -l

[Qemu-devel] [PATCH v6 06/11] fw_cfg_mem: introduce the data_width property

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com The data_width property is capable of changing the maximum valid access size to the MMIO data register, and resizes the memory region similarly, at device realization time. The default value of data_memwidth is set so that we don't yet diverge from

[Qemu-devel] [PATCH v6 07/11] fw_cfg_mem: expose the data_width property with fw_cfg_init_mem_wide()

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com We rebase fw_cfg_init_mem() to the new function for compatibility with current callers. The behavior of the (big endian) multi-byte data reads is best shown with a qtest session. Here, we are reading the first six bytes of the UUID $

[Qemu-devel] [PATCH v6 10/11] hw/arm: pass pristine kernel image to guest firmware over fw_cfg

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com Introduce the new boolean field arm_boot_info.firmware_loaded. When this field is set, it means that the portion of guest DRAM that the VCPU normally starts to execute, or the pflash chip that the VCPU normally starts to execute, has been populated by

[Qemu-devel] [PATCH v6 11/11] hw/arm/virt: enable passing of EFI-stubbed kernel to guest UEFI firmware

2014-12-22 Thread Paolo Bonzini
From: Laszlo Ersek ler...@redhat.com The virt board already ensures mutual exclusion between -bios and -pflash unit#0; we only need to set bootinfo.firmware_loaded, introduced in the previous patch, if either of those options was used to load the guest firmware. Signed-off-by: Laszlo Ersek

Re: [Qemu-devel] cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Zhang Haoyu
On 2014/12/22 20:05, Paolo Bonzini wrote: On 22/12/2014 12:40, Zhang Haoyu wrote: On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but mails from others can be received, any helps? For

Re: [Qemu-devel] [PULL 00/19] Block patches

2014-12-22 Thread Peter Maydell
On 22 December 2014 at 12:07, Peter Maydell peter.mayd...@linaro.org wrote: Something very odd is happening here: why are all the rs apparently missing from those error messages? Looks like the result of using GNU sed-isms in some of the filters. On OSX: $ echo art trick | sed -e 's/\r//g' at

Re: [Qemu-devel] [PATCH RESEND for 2.3 0/6] xbzrle: optimize the xbzrle

2014-12-22 Thread ChenLiang
On 2014/12/16 23:01, Dr. David Alan Gilbert wrote: * Amit Shah (amit.s...@redhat.com) wrote: On (Wed) 10 Dec 2014 [08:03:33], Amit Shah wrote: On (Mon) 24 Nov 2014 [19:55:46], arei.gong...@huawei.com wrote: From: ChenLiang chenlian...@huawei.com Hi, This set of patches rebase on

[Qemu-devel] [PATCH 0/12] write/create for Parallels images

2014-12-22 Thread Denis V. Lunev
This patchset provides an ability to create of/write to Parallels images and some testing of the new code. Writes are not optimized now at all, we just modify catalog_bitmap and write those changes to the image itself at once. This will be improved in next steps. This patchset consists of not

[Qemu-devel] [PATCH 06/12] block/parallels: provide _co_readv routine for parallels format driver

2014-12-22 Thread Denis V. Lunev
Main approach is taken from qcow2_co_readv. The patch drops coroutine lock for the duration of IO operation and peforms normal scatter-gather IO using standard QEMU backend. Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com

[Qemu-devel] [PATCH 02/12] block/parallels: rename parallels_header to ParallelsHeader

2014-12-22 Thread Denis V. Lunev
this follows QEMU coding convention Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan Hajnoczi stefa...@redhat.com --- block/parallels.c | 8 1 file changed, 4 insertions(+),

[Qemu-devel] [PATCH 09/12] iotests, parallels: test for write into Parallels image

2014-12-22 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan Hajnoczi stefa...@redhat.com --- tests/qemu-iotests/076 | 5 + tests/qemu-iotests/076.out | 10 ++ 2 files changed,

[Qemu-devel] [PATCH 03/12] block/parallels: switch to bdrv_read

2014-12-22 Thread Denis V. Lunev
From: Roman Kagan rka...@parallels.com Switch the .bdrv_read method implementation from using bdrv_pread() to bdrv_read() on the underlying file, since the latter is subject to i/o throttling while the former is not. Besides, since bdrv_read() operates in sectors rather than bytes, adjust the

[Qemu-devel] [PATCH 07/12] block/parallels: replace magic constants 4, 64 with proper sizeofs

2014-12-22 Thread Denis V. Lunev
simple purification.. Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan Hajnoczi stefa...@redhat.com --- block/parallels.c | 8 1 file changed, 4 insertions(+), 4

[Qemu-devel] [PATCH 01/12] iotests, parallels: quote TEST_IMG in 076 test to be path-safe

2014-12-22 Thread Denis V. Lunev
suggested by Jeff Cody Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan Hajnoczi stefa...@redhat.com --- tests/qemu-iotests/076 | 10 +- 1 file changed, 5 insertions(+), 5

[Qemu-devel] [PATCH 08/12] block/parallels: _co_writev callback for Parallels format

2014-12-22 Thread Denis V. Lunev
Support write on Parallels images. The code is almost the same as one in the previous patch implemented scatter-gather IO for read. Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan

[Qemu-devel] [PATCH 04/12] block/parallels: read up to cluster end in one go

2014-12-22 Thread Denis V. Lunev
From: Roman Kagan rka...@parallels.com Teach parallels_read() to do reads in coarser granularity than just a single sector: if requested, read up to the cluster end in one go. Signed-off-by: Roman Kagan rka...@parallels.com Signed-off-by: Denis V. Lunev d...@openvz.org CC: Jeff Cody

[Qemu-devel] [PATCH 05/12] block/parallels: add get_block_status

2014-12-22 Thread Denis V. Lunev
From: Roman Kagan rka...@parallels.com Implement VFS method for get_block_status to Parallels format driver. Signed-off-by: Roman Kagan rka...@parallels.com Signed-off-by: Denis V. Lunev d...@openvz.org CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan Hajnoczi

[Qemu-devel] [PATCH 10/12] block/parallels: support parallels image creation

2014-12-22 Thread Denis V. Lunev
Do not even care to create WithoutFreeSpace image, it is obsolete. Always create WithouFreSpacExt one. The code also does not spend a lot of efforts to fill cylinders and heads fields, they are not used actually in a real life neither in QEMU nor in Parallels products. Signed-off-by: Denis V.

[Qemu-devel] [PATCH 11/12] iotests, parallels: test for newly created parallels image via qemu-img

2014-12-22 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com CC: Jeff Cody jc...@redhat.com CC: Kevin Wolf kw...@redhat.com CC: Stefan Hajnoczi stefa...@redhat.com --- tests/qemu-iotests/115 | 68 ++

[Qemu-devel] [PATCH 12/12] parallels: change copyright information in the image header

2014-12-22 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev d...@openvz.org Acked-by: Roman Kagan rka...@parallels.com --- block/parallels.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index bea1217..e3abf4e 100644 --- a/block/parallels.c +++

Re: [Qemu-devel] [PULL 00/02] seccomp branch queue

2014-12-22 Thread Peter Maydell
On 19 December 2014 at 16:56, Eduardo Otubo eduardo.ot...@profitbricks.com wrote: The following changes since commit b574f602680d41c4cf4a9c106e3e2244bed01cdd: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20141216-1' into staging (2014-12-17 19:22:42 +) are available in

[Qemu-devel] [PATCH 2/2] pckbd: set bits 2-3-6-7 of the output port by default

2014-12-22 Thread Paolo Bonzini
OSes typically write 0xdd/0xdf to turn the A20 line off and on. This has bits 2-3-6-7 on, so that the output port subsection is migrated. Change the reset value and migration default to include those four bits, thus avoiding that the subsection is migrated. This strictly speaking changes guest

[Qemu-devel] [PATCH 1/2] serial: refine serial_thr_ipending_needed

2014-12-22 Thread Paolo Bonzini
If the THR interrupt is disabled, there is no need to migrate thr_ipending because LSR.THRE will be sampled again when the interrupt is enabled. (This is the behavior that is not documented in the datasheet, but relied on by Windows!) Note that in this case IIR will never be 0x2 so, if

[Qemu-devel] [PATCH 0/2] More 2.2-2.1 migration refinements

2014-12-22 Thread Paolo Bonzini
Two more changes. The first is a bit of a shot in the dark, because I cannot reproduce it, but it's obviously an improvement. Paolo Bonzini (2): serial: refine serial_thr_ipending_needed pckbd: set bits 2-3-6-7 of the output port by default hw/char/serial.c | 13 +++--

Re: [Qemu-devel] [PULL 00/13] tricore patches

2014-12-22 Thread Peter Maydell
On 21 December 2014 at 18:47, Bastian Koppelmann kbast...@mail.uni-paderborn.de wrote: The following changes since commit c4e7c17a8ecb41cdbb81374a128161c614ba1f1e: Merge remote-tracking branch 'remotes/kraxel/tags/pull-roms-20141217-1' into staging (2014-12-20 21:28:53 +) are

[Qemu-devel] [Bug 1402802] Re: target-tricore/translate.c:3812: possible bad expression ?

2014-12-22 Thread Bastian Koppelmann
** Changed in: qemu Status: Confirmed = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1402802 Title: target-tricore/translate.c:3812: possible bad expression ? Status in

[Qemu-devel] [PATCH 1/1] Do not hang on full PTY

2014-12-22 Thread Don Slutz
Signed-off-by: Don Slutz dsl...@verizon.com --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char.c b/qemu-char.c index ef84b53..6eec1d2 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -1387,6 +1387,7 @@ static CharDriverState *qemu_chr_open_pty(const char *id, }

[Qemu-devel] [Bug 1354167] Re: On VM restart: Could not open 'poppy.qcow2': Could not read snapshots: File too large

2014-12-22 Thread Nelle
I never have a problem when using virsh snapshot-create or delete. Problem started with one VM when I use qemu-img snapshot. Thank you Todd for work-around. It's helped me too. VM working again. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

[Qemu-devel] Need some help in understanding qemu infrastructure and execution flow

2014-12-22 Thread Ronex Dicapriyo
Hello, I am interested in learning the qemu emulation technology, But I don't know where to start. I have some knowledge/experience in device modeling. While walking through the qemu.org, I couldn't found proper documentation or guide to start working with QEMU. So, I am seeking some helps

[Qemu-devel] [RFC PATCH v2 0/3] [RFC PATCH 0/3] VFIO support for AMBA devices

2014-12-22 Thread Baptiste Reynal
The following series add VFIO support for AMBA devices. It introduces multiple compatible string support to deal with arm,primecell compatible string. The VFIOPlatformDevice now checks for this string and performs amba specific operations if it is present (change path of the device, add clock in

[Qemu-devel] [RFC PATCH v2 2/3] hw/vfio: amba device support

2014-12-22 Thread Baptiste Reynal
Add VFIO_DEVICE_TYPE_AMBA. Differentiate amba and platform devices according to compatible string. Signed-off-by: Baptiste Reynal b.rey...@virtualopensystems.com --- hw/vfio/platform.c| 15 --- include/hw/vfio/vfio-common.h | 1 + 2 files changed, 13 insertions(+), 3

[Qemu-devel] [RFC PATCH v2 3/3] hw/vfio: add pl330 device support

2014-12-22 Thread Baptiste Reynal
Create a meta-device for PL330 DMA. Add add_arm_pl330_fdt_node function, with multiple compatible string and clocks support. Signed-off-by: Baptiste Reynal b.rey...@virtualopensystems.com --- hw/arm/sysbus-fdt.c | 84 hw/vfio/Makefile.objs

[Qemu-devel] [RFC PATCH v2 1/3] hw/vfio/sysbus-fdt: refactoring

2014-12-22 Thread Baptiste Reynal
Creates set_interrupts_fdt_node and set_regions_fdt_node for code reusability. Signed-off-by: Baptiste Reynal b.rey...@virtualopensystems.com --- hw/arm/sysbus-fdt.c | 102 +--- 1 file changed, 73 insertions(+), 29 deletions(-) diff --git

Re: [Qemu-devel] [PULL 0/5] bootdevice: Refactor and improvement

2014-12-22 Thread Peter Maydell
) are available in the git repository at: https://github.com/gongleiarei/qemu.git tags/bootdevice-next-20141222 for you to fetch changes up to ddcd55316fb2851e144e719171621ad2816487dc: bootdevice: add Error **errp argument for QEMUBootSetHandler (2014-12-22 14:39:21 +0800

Re: [Qemu-devel] Need some help in understanding qemu infrastructure and execution flow

2014-12-22 Thread Peter Maydell
On 22 December 2014 at 16:08, Ronex Dicapriyo ronex...@yahoo.in wrote: I am interested in learning the qemu emulation technology, But I don't know where to start. I have some knowledge/experience in device modeling. While walking through the qemu.org, I couldn't found proper documentation or

Re: [Qemu-devel] Need some help in understanding qemu infrastructure and execution flow

2014-12-22 Thread Ronex Dicapriyo
 Thanks for the explanations, I have some more doubts on the same, Kindly clarify. On Monday, 22 December 2014 10:10 PM, Peter Maydell peter.mayd...@linaro.org wrote: 1) the basic execution flow of QEMU simulation engine 2) Notion of time, events in QEMU We don't have quite the

[Qemu-devel] [Bug 1404690] Re: Qemu crashes with chrooted m68k

2014-12-22 Thread Peter Maydell
I have a fix for this (our code for setting up the signal return trampoline used the wrong types and only worked on 32 bit hosts). I notice that /bin/ls can't ls directories (it seems ok with single files) but that's a different bug. -- You received this bug notification because you are a

[Qemu-devel] [PATCH] linux-user: Fix broken m68k signal handling on 64 bit hosts

2014-12-22 Thread Peter Maydell
The m68k signal frame setup code which writes the signal return trampoline code to the stack was assuming that a 'long' was 32 bits; on 64 bit systems this meant we would end up writing the 32 bit (2 insn) trampoline sequence to retaddr+4,retaddr+6 instead of the intended retaddr+0,retaddr+2,

[Qemu-devel] Need some help in understanding qemu infrastructure and execution flow

2014-12-22 Thread Ronex Dicapriyo
Hello, I am interested in learning the qemu emulation technology, But I don't know where to start. I have some knowledge/experience in device modeling. While walking through the qemu.org, I couldn't found proper documentation or guide to start working with QEMU. So, I am seeking some helps from

Re: [Qemu-devel] Need some help in understanding qemu infrastructure and execution flow

2014-12-22 Thread Peter Maydell
On 22 December 2014 at 17:05, Ronex Dicapriyo ronex...@yahoo.in wrote: [Ronex] Ok, As I can understand, QEMU is functional accurate, rather than cycle for fast simulation. But there must be some kind of reference clock, like say for example any timer device which raises an interrupt after

[Qemu-devel] [Bug 1404690] Re: Qemu crashes with chrooted m68k

2014-12-22 Thread Peter Maydell
Patch fixing this: https://patchwork.ozlabs.org/patch/423460/ -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1404690 Title: Qemu crashes with chrooted m68k Status in QEMU: New Bug description:

[Qemu-devel] [PULL 00/14] QEMU: VFIO updates

2014-12-22 Thread Alex Williamson
The following changes since commit b574f602680d41c4cf4a9c106e3e2244bed01cdd: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20141216-1' into staging (2014-12-17 19:22:42 +) are available in the git repository at: git://github.com/awilliam/qemu-vfio.git

[Qemu-devel] [PULL 02/14] vfio: fix adding memory listener to the right address space

2014-12-22 Thread Alex Williamson
From: Frank Blaschka blasc...@linux.vnet.ibm.com Depending on the device, container-space-as contains the valid AddressSpace. Using address_space_memory breaks devices sitting behind an iommu (and using a separate address space). Signed-off-by: Frank Blaschka blasc...@linux.vnet.ibm.com

[Qemu-devel] [PULL 01/14] vfio: migration to trace points

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org This patch removes all DPRINTF and replace them by trace points. A few DPRINTF used in error cases were transformed into error_report. Signed-off-by: Eric Auger eric.au...@linaro.org Signed-off-by: Alex Williamson alex.william...@redhat.com ---

[Qemu-devel] [PULL 07/14] hw/vfio/pci: add type, name and group fields in VFIODevice

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org Add 3 new fields in the VFIODevice struct. Type is set to VFIO_DEVICE_TYPE_PCI. The type enum value will later be used to discriminate between VFIO PCI and platform devices. The name is set to domain:bus:slot:function. Currently used to test whether the

[Qemu-devel] [PULL 05/14] hw/vfio/pci: generalize mask/unmask to any IRQ index

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org To prepare for platform device introduction, rename vfio_mask_intx and vfio_unmask_intx into vfio_mask_single_irqindex and respectively unmask_single_irqindex. Also use a nex index parameter. With that name and prototype the function will be usable for

[Qemu-devel] [PULL 04/14] hw/vfio/pci: Rename VFIODevice into VFIOPCIDevice

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org This prepares for the introduction of VFIOPlatformDevice Signed-off-by: Eric Auger eric.au...@linaro.org Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/vfio/pci.c | 210 + 1 file

[Qemu-devel] [PULL 06/14] hw/vfio/pci: introduce minimalist VFIODevice with fd

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org Introduce a new base VFIODevice strcut that will be used by both PCI and Platform VFIO device. Move VFIOPCIDevice fd field there. Obviously other fields from VFIOPCIDevice will be moved there but this patch file is introduced to ease the review. Also

[Qemu-devel] [PULL 09/14] hw/vfio/pci: Introduce VFIORegion

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org This structure is going to be shared by VFIOPCIDevice and VFIOPlatformDevice. VFIOBAR includes it. vfio_eoi becomes an ops of VFIODevice specialized by parent device. This makes possible to transform vfio_bar_write/read into generic vfio_region_write/read

[Qemu-devel] [PULL 08/14] hw/vfio/pci: handle reset at VFIODevice

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org Since we can potentially have both PCI and platform devices in the same VFIO group, this latter now owns a list of VFIODevices. A unified reset handler, vfio_reset_handler, is registered, looping through this VFIODevice list. 2 specialized operations are

[Qemu-devel] [PULL 14/14] vfio: Cleanup error_report()s

2014-12-22 Thread Alex Williamson
With the conversion to tracepoints, a couple previous DPRINTKs are now quite a bit more visible and are really just informational. Remove these and add a bit more description to another. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/vfio/common.c |2 +- hw/vfio/pci.c|

[Qemu-devel] [PULL 11/14] hw/vfio/pci: rename group_list into vfio_group_list

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org better fit in the rest of the namespace Signed-off-by: Eric Auger eric.au...@linaro.org Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/vfio/pci.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[Qemu-devel] [PULL 12/14] hw/vfio/pci: use name field in format strings

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org Signed-off-by: Eric Auger eric.au...@linaro.org Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/vfio/pci.c | 213 - trace-events | 109 +++-- 2 files

[Qemu-devel] [PULL 10/14] hw/vfio/pci: split vfio_get_device

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org vfio_get_device now takes a VFIODevice as argument. The function is split into 2 parts: vfio_get_device which is generic and vfio_populate_device which is bus specific. 3 new fields are introduced in VFIODevice to store dev_info. vfio_put_base_device is

[Qemu-devel] [PULL 13/14] hw/vfio: create common module

2014-12-22 Thread Alex Williamson
From: Eric Auger eric.au...@linaro.org A new common module is created. It implements all functions that have no device specificity (PCI, Platform). This patch only consists in move (no functional changes) Signed-off-by: Kim Phillips kim.phill...@linaro.org Signed-off-by: Eric Auger

  1   2   >