Re: [Qemu-devel] unknown keycodes

2013-05-07 Thread Ali
Daniel P. Berrange redhat.com> writes: > > Good, those are the interesting bits I wanted to see > > > _XKB_RULES_NAMES(STRING) = "base", "empty", "empty", "", "" > > I'll prepare a patch to test out which ought to fix OS-X > > Regards, > Daniel Any luck with this patch? I'm having the same i

[Qemu-devel] [Bug 1563931] [NEW] qemu-img should allow resizing image with snapshots

2016-03-30 Thread Zeeshan Ali
Public bug reported: Currently it's not possible to resize a disk image with qemu-img if image in question has snapshots associated. I'm not entirely sure this is technically possible but if it is, it would be really nice to support that. $ qemu-img --version qemu-img version 2.4.1 (qemu-2.4.1-8.

[Qemu-devel] guidance regarding GSOC

2010-03-26 Thread Faqeer ALI
mands to the QObject API" or "Improve/Simplify the QObject API" projects, I only found the qobject.h in the sources, can you please give me little details, so that I could start working on it

Re: [Qemu-devel] [PATCH v5] vfio-ccw: support async command subregion

2019-06-07 Thread Farhan Ali
On 06/07/2019 10:53 AM, Cornelia Huck wrote: A vfio-ccw device may provide an async command subregion for issuing halt/clear subchannel requests. If it is present, use it for sending halt/clear request to the device; if not, fall back to emulation (as done today). Signed-off-by: Cornelia Huck

Re: [Qemu-devel] [PATCH v5] vfio-ccw: support async command subregion

2019-06-07 Thread Farhan Ali
On 06/07/2019 11:09 AM, Cornelia Huck wrote: On Fri, 7 Jun 2019 11:02:36 -0400 Farhan Ali wrote: On 06/07/2019 10:53 AM, Cornelia Huck wrote: A vfio-ccw device may provide an async command subregion for issuing halt/clear subchannel requests. If it is present, use it for sending halt

Re: [Qemu-devel] [Qemu-arm] [PATCH 28/42] target/arm: Convert VMOV (imm) to decodetree

2019-06-10 Thread Ali Mezgani

Re: [Qemu-devel] [PATCH v5] vfio-ccw: support async command subregion

2019-06-11 Thread Farhan Ali
On 06/07/2019 10:53 AM, Cornelia Huck wrote: A vfio-ccw device may provide an async command subregion for issuing halt/clear subchannel requests. If it is present, use it for sending halt/clear request to the device; if not, fall back to emulation (as done today). Signed-off-by: Cornelia Huck

Re: [Qemu-devel] [PATCH v5] vfio-ccw: support async command subregion

2019-06-11 Thread Farhan Ali
On 06/11/2019 07:37 AM, Cornelia Huck wrote: On Fri, 7 Jun 2019 11:19:09 -0400 Farhan Ali wrote: On 06/07/2019 11:09 AM, Cornelia Huck wrote: On Fri, 7 Jun 2019 11:02:36 -0400 Farhan Ali wrote: On 06/07/2019 10:53 AM, Cornelia Huck wrote: diff --git a/hw/s390x/css.c b/hw/s390x

Re: [Qemu-devel] [PATCH v5] vfio-ccw: support async command subregion

2019-06-12 Thread Farhan Ali
On 06/12/2019 05:38 AM, Cornelia Huck wrote: On Tue, 11 Jun 2019 15:33:59 -0400 Farhan Ali wrote: On 06/07/2019 10:53 AM, Cornelia Huck wrote: A vfio-ccw device may provide an async command subregion for issuing halt/clear subchannel requests. If it is present, use it for sending halt

[Qemu-devel] qemu-iotest 55 broken

2019-03-14 Thread Farhan Ali
Hi, I noticed qemu iotest 55 was broken on the latest master (My head commit is dbbc277 Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging). The backtrace of the qemu process when the test fails: #0 0x7f82047cd428 in __GI_raise (sig=sig@entry=6) at ../

Re: [Qemu-devel] qemu-iotest 55 broken

2019-03-14 Thread Farhan Ali
On 03/14/2019 01:11 PM, Eric Blake wrote: On 3/14/19 11:33 AM, Farhan Ali wrote: Hi, I noticed qemu iotest 55 was broken on the latest master (My head commit is dbbc277 Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging). Patch has been propos

Re: [Qemu-devel] [PATCH v5 10/15] s390-bios: Support for running format-0/1 channel programs

2019-03-14 Thread Farhan Ali
-ccw/s390-ccw.h | 1 + pc-bios/s390-ccw/start.S| 29 + 4 files changed, 301 insertions(+), 3 deletions(-) Reviewed-by: Farhan Ali

Re: [Qemu-devel] [PATCH for-2.8 0/3] virtio fixes

2016-11-16 Thread Farhan Ali
ms to solve the issue. Tested-by : Farhan Ali Thank you Farhan On 11/16/2016 02:50 PM, Christian Borntraeger wrote: On 11/15/2016 02:46 PM, Paolo Bonzini wrote: Patch 1 fixes vhost, patches 2-3 fix Windows hibernation. Paolo Paolo Bonzini (3): virtio: introduce grab/release_ioeventfd t

Re: [Qemu-devel] [PATCH for-2.8 0/3] virtio fixes

2016-11-16 Thread Farhan Ali
On 11/16/2016 03:16 PM, Michael S. Tsirkin wrote: On Wed, Nov 16, 2016 at 03:03:13PM -0500, Farhan Ali wrote: Hi Paolo, I was able to test your patches in our s390 environment. I don't see the qemu crashes anymore which I noticed before. Testing a guest running high stress I/O wor

Re: [Qemu-devel] [PATCH for-2.8 0/3] virtio fixes

2016-11-16 Thread Farhan Ali
On 11/16/2016 03:32 PM, Farhan Ali wrote: On 11/16/2016 03:16 PM, Michael S. Tsirkin wrote: On Wed, Nov 16, 2016 at 03:03:13PM -0500, Farhan Ali wrote: Hi Paolo, I was able to test your patches in our s390 environment. I don't see the qemu crashes anymore which I noticed b

Re: [Qemu-devel] [PATCH 3/5] s390x/ipl: Load network boot image

2017-02-22 Thread Farhan Ali
Hi Thomas, Thanks for the review. On 02/20/2017 10:28 AM, Thomas Huth wrote: On 20.02.2017 15:19, Cornelia Huck wrote: From: Farhan Ali Load the network boot image into guest RAM when the boot device selected is a network device. Use some of the reserved space in IplBlockCcw to store the

Re: [Qemu-devel] [PATCH 1/5] elf-loader: Allow late loading of elf

2017-02-24 Thread Farhan Ali
On 02/24/2017 05:44 AM, Thomas Huth wrote: On 21.02.2017 11:23, Christian Borntraeger wrote: On 02/20/2017 04:33 PM, Thomas Huth wrote: On 20.02.2017 15:19, Cornelia Huck wrote: From: Farhan Ali The current QEMU ROM infrastructure rejects late loading of ROMs. And ELFs are currently

Re: [Qemu-devel] [PATCH 3/5] s390x/ipl: Load network boot image

2017-02-24 Thread Farhan Ali
On 02/24/2017 05:11 AM, Thomas Huth wrote: On 22.02.2017 16:01, Farhan Ali wrote: Hi Thomas, Thanks for the review. On 02/20/2017 10:28 AM, Thomas Huth wrote: On 20.02.2017 15:19, Cornelia Huck wrote: From: Farhan Ali [...] +} + +ram_ptr = memory_region_get_ram_ptr(mr); +if

[Qemu-devel] NMI watchdog bug

2017-06-14 Thread ali saeedi
Hello I run qemu on linux kernel 4.11.4 at ubuntu lts 16.04 but when booting guest i encouner this in qemu monitor ' nmi watchdog: bug: soft lockup - cpu#0 stuck for 23s! [swapper:0/1]' i follow this link 'http://wiki.qemu.org/Hosts/Linux' what is the problem thanks a lot

[Qemu-devel] migration_bitmap_rcu

2017-06-21 Thread ali saeedi
Hello Is 'migration_bitmap_rcu-> bmap' a bitmap of *all pages* in ram? thanks a lot

[Qemu-devel] TARGET_PAGE_BITS

2017-06-23 Thread ali saeedi
Hello What does TARGET_PAGE_BITS mean in qemu code? thanks a lot

Re: [Qemu-devel] TARGET_PAGE_BITS

2017-06-23 Thread ali saeedi
igned long end, page; end = TARGET_PAGE_ALIGN(start + length) >> TARGET_PAGE_BITS; page = start >> TARGET_PAGE_BITS; ... } thanks a lot On Fri, Jun 23, 2017 at 7:11 PM, Alex Bennée wrote: > > ali saeedi writes: > > > Hello > > What does TARGET_PAGE_BITS m

[Qemu-devel] migration_bitmap_sync()

2017-06-24 Thread ali saeedi
Hello What does ' migration_bitmap_sync()' function do? thanks a lot

Re: [Qemu-devel] [RFC PATCH 00/14] Implement network booting directly into the s390-ccw BIOS

2017-06-27 Thread Farhan Ali
Hi Thomas, This is really interesting :) On 06/27/2017 07:48 AM, Thomas Huth wrote: It's already possible to do a network boot of an s390x guest with an external netboot image (based on a Linux installation), but it would be much more convenient if the s390-ccw firmware supported network bootin

[Qemu-devel] help for code

2017-04-12 Thread ali saeedi
Hi I am new in qemu vm live migration. why we have this condition "current_time >= initial_time + BUFFER_DELAY" in qemu? thanks

[Qemu-devel] sleeping in vm live migration code

2017-04-12 Thread ali saeedi
Hi why we have below code in vm live migration? * g_usleep((initial_time + BUFFER_DELAY - current_time)*1000);* thanks a lot

[Qemu-devel] MemoryRegion and RamBlock

2017-06-06 Thread ali saeedi
Hello all what does these concepts 'MemoryRegion' and 'RamBlock' mean? thanks a lot

Re: [Qemu-devel] Memory dirty event

2017-06-10 Thread ali saeedi
> page-track mechanism. > > > > On 05/25/2017 08:26 PM, ali saeedi wrote: > >> Hello >> How can i receive an event when a page or block is dirtied in qemu code? >> thanks a lot >> >>

[Qemu-devel] global bitmap

2017-06-13 Thread ali saeedi
Hello can i have a bitmap of all pages in the ram? in qemu code, it seems that we only can have bitmap of pages in a block and we have no global bitmap of pages. thanks a lot

[Qemu-devel] MigrationParams

2017-05-06 Thread ali saeedi
Hi what are 'blk' and 'shared' boolean variables in MigrationParams structure in migration.h? thanks a lot

[Qemu-devel] vmstate_save_state

2017-05-06 Thread ali saeedi
what does "vmstate_save_state(f, &vmstate_configuration, &savevm_state, 0)" function call do in "qemu_savevm_state_header" function in savevm.c at line 968 ? why has "savevm_state" been passed to this function? thanks a lot

[Qemu-devel] qemu_savevm_state_begin

2017-05-06 Thread ali saeedi
Hi what is the difference between functions "qemu_savevm_state_begin" and "qemu_savevm_state_header" in migration_thread? thanks a lot

[Qemu-devel] order of dirtying pages in vm live migration iterations

2017-05-11 Thread ali saeedi
Hi Is it possible to have the order of dirtying pages in every iteration of vm live migration? thanks a lot

[Qemu-devel] Fwd: migration_bitmap_sync()

2017-06-28 Thread ali saeedi
-- Forwarded message -- From: ali saeedi Date: Sat, Jun 24, 2017 at 2:50 PM Subject: migration_bitmap_sync() To: qemu-devel@nongnu.org Hello What does ' migration_bitmap_sync()' function do? thanks a lot

[Qemu-devel] DIRTY_MEMORY_BLOCK_SIZE;

2017-06-30 Thread ali saeedi
Hello what does 'DIRTY_MEMORY_BLOCK_SIZE' mean? is it the number of words in a block? or number of pages in a block? or number of bytes in a block? thanks a lot

[Qemu-devel] Page Block word

2017-06-30 Thread ali saeedi
Hello what is the difference between word, page and block in qemu? thanks a lot

[Qemu-devel] BIT_WORD(start >> TARGET_PAGE_BITS)

2017-06-30 Thread ali saeedi
Hello what does the following code do? 'unsigned long page = BIT_WORD(start >> TARGET_PAGE_BITS)' ? thanks a lot

Re: [Qemu-devel] BIT_WORD(start >> TARGET_PAGE_BITS)

2017-06-30 Thread ali saeedi
thank you so much Eric Sorry for too questions I certainly follow your guide thanks a lot On Fri, Jun 30, 2017 at 5:49 PM, Eric Blake wrote: > On 06/30/2017 08:02 AM, ali saeedi wrote: > > Hello > > what does the following code do? > > 'unsigned long page = BIT_WORD

Re: [Qemu-devel] [RFC PATCH v2 1/8] pc-bios/s390-ccw: Move libc functions to separate header

2017-07-07 Thread Farhan Ali
"virtio.h" #include "scsi.h" diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c index 6ee93d5..8768331 100644 --- a/pc-bios/s390-ccw/virtio.c +++ b/pc-bios/s390-ccw/virtio.c @@ -8,6 +8,7 @@ * directory. */ +#include "libc.h" #include "s390-ccw.h" #include "virtio.h" #include "virtio-scsi.h" Reviewed-by: Farhan Ali

Re: [Qemu-devel] [RFC PATCH v2 2/8] pc-bios/s390-ccw: Move ebc2asc to sclp.c

2017-07-07 Thread Farhan Ali
On 07/07/2017 06:26 AM, Thomas Huth wrote: We will later need this array in a file that we will link to the netboot code, too. Since there is some ebcdic convertion done in sclp_get_loadparm_ascii(), the sclp.c file seems to be a good candidate. s/convertion/conversion Signed-off-by: Thomas

[Qemu-devel] old_vm_running boolean variable

2017-05-19 Thread ali saeedi
Hello What is the role of "old_vm_running" variable in migration_thread? thanks a lot

[Qemu-devel] get_queued_page

2017-05-21 Thread ali saeedi
Hello Is "get_queued_page" function (which is called in line 1383 of ram.c) only used in postcopy mode and has no usage in precopy mode? thanks a lot

[Qemu-devel] Precopy VM Live Migration

2017-05-21 Thread ali saeedi
Hello I have understood from code that In Precopy, there is no Priority for sending dirty pages and qemu sends a page as soon as it is found in a block(by linear searching in blocks). in other word, qemu does not consider to pages that dirties more than others until sends them later than other pag

[Qemu-devel] Offset

2017-05-22 Thread ali saeedi
Hello what is the difference between offset is available in 'PageSearchStatus' struct and offset in 'RamBlock' struct in Ram.c File? thanks a lot

[Qemu-devel] TARGET_PAGE_BITS

2017-05-22 Thread ali saeedi
Hello What is TARGET_PAGE_BITS in ram.c? thanks a lot

[Qemu-devel] bitmap

2017-05-22 Thread ali saeedi
Hi does this code 'atomic_rcu_read(&migration_bitmap_rcu)->bmap' return bitmap of dirty blocks or bitmap of pages? thanks a lot

[Qemu-devel] Memory dirty event

2017-05-25 Thread ali saeedi
Hello How can i receive an event when a page or block is dirtied in qemu code? thanks a lot

[Qemu-devel] page dirtying

2017-05-30 Thread ali saeedi
Hello I want to have the order of dirty pages in an array and do prediction about the next page that will be dirtied . so it is important for me to achieve this order in qemu code. in other word i need understand as soon as a page dirties. what is your recommendations to have this order? I have n

[Qemu-devel] qemu, kvm and qemu-kvm

2017-06-01 Thread ali saeedi
Hello what are the difference between kvm, qemu and kvm-qemu? thanks a lot

[Qemu-devel] S390 bios breaks in qemu 2.10.rc3

2017-08-24 Thread Farhan Ali
Hi, There is an issue in QEMU bios which is exposed by commit commit 198c0d1f9df8c429502cb744fc26b6ba6e71db74 Author: Halil Pasic Date: Thu Jul 27 17:48:42 2017 +0200 s390x/css: check ccw address validity According to the PoP channel command words (CCW) must be doubleword aligne

Re: [Qemu-devel] S390 bios breaks in qemu 2.10.rc3

2017-08-24 Thread Farhan Ali
On 08/24/2017 11:50 AM, Thomas Huth wrote: On 24.08.2017 17:47, Halil Pasic wrote: On 08/24/2017 05:35 PM, Thomas Huth wrote: On 24.08.2017 17:13, Cornelia Huck wrote: On Thu, 24 Aug 2017 11:05:08 -0400 Farhan Ali wrote: Hi, There is an issue in QEMU bios which is exposed by commit

Re: [Qemu-devel] S390 bios breaks in qemu 2.10.rc3

2017-08-24 Thread Farhan Ali
On 08/24/2017 12:07 PM, Peter Maydell wrote: On 24 August 2017 at 16:53, Farhan Ali wrote: On 08/24/2017 11:50 AM, Thomas Huth wrote: True, so that could still be an issue. Looking at the cio.h in the kernel, they define the struct like this: struct ccw1 { __u8 cmd_code

Re: [Qemu-devel] S390 bios breaks in qemu 2.10.rc3

2017-08-24 Thread Farhan Ali
. On 08/24/2017 05:05 PM, Farhan Ali wrote: Hi, There is an issue in QEMU bios which is exposed by commit commit 198c0d1f9df8c429502cb744fc26b6ba6e71db74 Author: Halil Pasic Date: Thu Jul 27 17:48:42 2017 +0200 s390x/css: check ccw address validity According to the PoP channel

[Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-25 Thread Farhan Ali
The commit 198c0d1f9df8c4 s390x/css: check ccw address validity exposes an alignment issue in ccw bios. According to PoP the CCW must be doubleword aligned. Let's fix this in the bios. Cc: qemu-sta...@nongnu.org Signed-off-by: Farhan Ali Reviewed-by: Halil Pasic Reviewed-by: Eric Farman

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-25 Thread Farhan Ali
On 08/25/2017 10:04 AM, Cornelia Huck wrote: On Fri, 25 Aug 2017 09:24:46 -0400 Farhan Ali wrote: The commit 198c0d1f9df8c4 s390x/css: check ccw address validity exposes an alignment issue in ccw bios. According to PoP the CCW must be doubleword aligned. Let's fix this in the bios

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-28 Thread Farhan Ali
On 08/28/2017 04:22 AM, Cornelia Huck wrote: On Fri, 25 Aug 2017 11:05:30 -0400 Farhan Ali wrote: On 08/25/2017 10:04 AM, Cornelia Huck wrote: On Fri, 25 Aug 2017 09:24:46 -0400 Farhan Ali wrote: The commit 198c0d1f9df8c4 s390x/css: check ccw address validity exposes an alignment issue

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-28 Thread Farhan Ali
On 08/28/2017 09:06 AM, Cornelia Huck wrote: On Mon, 28 Aug 2017 08:56:42 -0400 Farhan Ali wrote: On 08/28/2017 04:22 AM, Cornelia Huck wrote: On Fri, 25 Aug 2017 11:05:30 -0400 Farhan Ali wrote: On 08/25/2017 10:04 AM, Cornelia Huck wrote: On Fri, 25 Aug 2017 09:24:46 -0400 Farhan Ali

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-28 Thread Farhan Ali
On 08/28/2017 09:24 AM, Christian Borntraeger wrote: On 08/28/2017 03:18 PM, Farhan Ali wrote: On 08/28/2017 09:06 AM, Cornelia Huck wrote: On Mon, 28 Aug 2017 08:56:42 -0400 Farhan Ali wrote: On 08/28/2017 04:22 AM, Cornelia Huck wrote: On Fri, 25 Aug 2017 11:05:30 -0400 Farhan Ali

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-28 Thread Farhan Ali
On 08/28/2017 10:05 AM, Cornelia Huck wrote: It's the alignment of the CCW which causes the problem. The exact error message when starting the guest was: ! No virtio device found ! Since it worked for SCSI and CDL, and failed for LDL disks on that particular system, we are not really sure w

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-28 Thread Farhan Ali
On 08/28/2017 10:19 AM, Halil Pasic wrote: On 08/28/2017 04:15 PM, Farhan Ali wrote: On 08/28/2017 10:05 AM, Cornelia Huck wrote: It's the alignment of the CCW which causes the problem. The exact error message when starting the guest was: ! No virtio device found ! Since it worke

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-28 Thread Farhan Ali
Hi Phil, On 08/28/2017 11:04 AM, Philippe Mathieu-Daudé wrote: Can you provide the link script used in both systems? See on the previous thread: https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.nongnu.org_archive_html_qemu-2Ddevel_2017-2D08_msg05134.html&d=DwIC-g&c=jf_iaSHvJObTbx-siA1Z

Re: [Qemu-devel] [PATCH] s390-ccw: Fix alignment for CCW1

2017-08-29 Thread Farhan Ali
On 08/29/2017 08:04 AM, Cornelia Huck wrote: On Mon, 28 Aug 2017 10:28:53 -0400 Farhan Ali wrote: On 08/28/2017 10:19 AM, Halil Pasic wrote: On 08/28/2017 04:15 PM, Farhan Ali wrote: On 08/28/2017 10:05 AM, Cornelia Huck wrote: It's the alignment of the CCW which causes the pr

Re: [Qemu-devel] [PATCH] hw/s390x/sclp: Mark the sclp device with user_creatable = false

2017-10-04 Thread Farhan Ali
sc->read_SCP_info = read_SCP_info; sc->read_storage_element0_info = read_storage_element0_info; Reviewed-by: Farhan Ali

[Qemu-devel] [PATCH v1 1/1] virtio-ccw: Add the virtio-input devices for CCW bus

2017-10-09 Thread Farhan Ali
Wire up the virtio-input HID devices (keyboard, mouse, tablet) for the CCW bus. The virtio-input is a virtio-1 device, so disable legacy revision 0. Signed-off-by: Farhan Ali Reviewed-by: Halil Pasic Reviewed-by: Christian Borntraeger --- hw/s390x/virtio-ccw.c | 100

Re: [Qemu-devel] [PATCH v2 4/5] s390-ccw: interactive boot menu for eckd dasd

2017-12-12 Thread Farhan Ali
On 12/11/2017 05:19 PM, Collin L. Walling wrote: When the boot menu options are present and the guest's disk has been configured by the zipl tool, then the user will be presented with an interactive boot menu with labeled entries. An example of what the menu might look like: zIPL v1.37.1-

Re: [Qemu-devel] [PATCH 05/11] virtio-ccw: convert VirtIOCCWDeviceClass::init -> realize

2018-01-16 Thread Farhan Ali
shouldn't the commit message say exit -> unrealize? Thanks Farhan On 01/16/2018 08:15 AM, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- hw/s390x/virtio-ccw.h | 2 +- hw/s390x/virtio-ccw.c | 35 +-- 2 files changed, 18 insertions(+

Re: [Qemu-devel] [PATCH 05/11] virtio-ccw: convert VirtIOCCWDeviceClass::init -> realize

2018-01-16 Thread Farhan Ali
On 01/16/2018 09:07 AM, Philippe Mathieu-Daudé wrote: On 01/16/2018 10:41 AM, Farhan Ali wrote: shouldn't the commit message say exit -> unrealize? Oops, indeed :| Thanks :) Phil. Sure, you are welcome :) With the change in commit message, the patch looks good to me: Rev

[Qemu-devel] qemu_savevm_state_header()

2017-04-04 Thread ali saeedi
Hi I am new in qemu vm live migration. what does 'qemu_savevm_state_header()' fuction do? thanks

[Qemu-devel] Qemu VM Live Migration Code

2017-04-04 Thread ali saeedi
Hello I am a student who is interested in vm live migration. I want to understand vm live migration code in qemu. so I tried to understand the code that is available in 'migration.c' but it is very difficult for me to understand (I have started from migration_thread function). I also has studied mi

[Qemu-devel] bytes_xfer and xfer_limit

2017-04-04 Thread ali saeedi
Hi What are the variables 'bytes_xfer' and 'xfer_limit' in qemu-file.c ? what does the function 'qemu_file_rate_limit' do? thanks

[Qemu-devel] qemu_file_rate_limit

2017-04-06 Thread ali saeedi
Hi what does 'qemu_file_rate_limit' function do? thanks

[Qemu-devel] [PATCH for 3.1? or 4 v4 1/1] qemu-iotests: Don't run the test when user is root

2018-12-03 Thread Farhan Ali
Test 232 creates image files with read-only permission and expects an error message when trying to access the image files with read-only and auto-read-only turned off. Don't run as root user, since root can open files with read/write access for read-only files. Signed-off-by: Farha

Re: [Qemu-devel] [PATCH 0/3] vfio-ccw: support hsch/csch (kernel part)

2018-12-05 Thread Farhan Ali
On 12/05/2018 07:54 AM, Cornelia Huck wrote: Yeah, that is perfectly clear, but it ain't the complete story. E.g. are subsequent commands blocking until the preceding command finishes is part of the interface. And what is good implementation depends on the answer. What I mean, I first need to

Re: [Qemu-devel] [PATCH 0/3] vfio-ccw: support hsch/csch (kernel part)

2018-12-06 Thread Farhan Ali
On 12/06/2018 09:39 AM, Cornelia Huck wrote: On Wed, 5 Dec 2018 13:34:11 -0500 Farhan Ali wrote: On 12/05/2018 07:54 AM, Cornelia Huck wrote: Yeah, that is perfectly clear, but it ain't the complete story. E.g. are subsequent commands blocking until the preceding command finishes is

Re: [Qemu-devel] [PATCH 0/3] vfio-ccw: support hsch/csch (kernel part)

2018-12-06 Thread Farhan Ali
On 12/06/2018 11:21 AM, Cornelia Huck wrote: On Thu, 6 Dec 2018 10:26:12 -0500 Farhan Ali wrote: On 12/06/2018 09:39 AM, Cornelia Huck wrote: On Wed, 5 Dec 2018 13:34:11 -0500 Farhan Ali wrote: On 12/05/2018 07:54 AM, Cornelia Huck wrote: Yeah, that is perfectly clear, but it ain&#

Re: [Qemu-devel] [PATCH] hw/s390/ccw.c: Don't take address of packed members

2018-12-10 Thread Farhan Ali
csw; +copy_scsw_from_guest(&destscsw, &srcscsw); +dest->scsw = destscsw; dest->mba = be64_to_cpu(src->mba); for (i = 0; i < ARRAY_SIZE(dest->mda); i++) { dest->mda[i] = src->mda[i]; Reviewed-by: Farhan Ali

Re: [Qemu-devel] [PATCH v2] hw/s390/ccw.c: Don't take address of packed members

2018-12-13 Thread Farhan Ali
py_scsw_from_guest(&dest_scsw, &src_scsw); +dest->scsw = dest_scsw; dest->mba = be64_to_cpu(src->mba); for (i = 0; i < ARRAY_SIZE(dest->mda); i++) { dest->mda[i] = src->mda[i]; Reviewed-by: Farhan Ali

Re: [Qemu-devel] [PATCH 02/15] s390-bios: decouple cio setup from virtio

2018-12-13 Thread Farhan Ali
ADPARM_LEN); sclp_print(ldp); @@ -168,6 +173,7 @@ static void virtio_setup(void) int main(void) { sclp_setup(); +css_setup(); virtio_setup(); zipl_load(); /* no return */ Reviewed-by: Farhan Ali

Re: [Qemu-devel] [PATCH 03/15] s390-bios: decouple common boot logic from virtio

2018-12-13 Thread Farhan Ali
eters)); -if (store_iplb(&iplb)) { +if (have_iplb) { switch (iplb.pbt) { case S390_IPL_TYPE_CCW: dev_no = iplb.ccw.devno; @@ -174,6 +185,7 @@ int main(void) { sclp_setup(); css_setup(); +boot_setup(); virtio_setup(); zipl_load(); /* no return */ Reviewed-by: Farhan Ali

Re: [Qemu-devel] [PATCH 05/15] s390-bios: Factor finding boot device out of virtio code path

2018-12-13 Thread Farhan Ali
On 12/12/2018 09:11 AM, Jason J. Herne wrote: Make a new routine find_boot_device to locate the boot device for all cases. not just virtio. I don't think there should be a period after cases? In one case no boot device is specified and a suitable boot device can not be auto detected. The

Re: [Qemu-devel] [PATCH 10/15] s390-bios: Support for running format-0/1 channel programs

2018-12-13 Thread Farhan Ali
On 12/12/2018 09:11 AM, Jason J. Herne wrote: Add struct for format-0 ccws. Support executing format-0 channel programs and waiting for their completion before continuing execution. This will be used for real dasd ipl. Add cu_type() to channel io library. This will be used to query control un

Re: [Qemu-devel] [PATCH 11/15] s390-bios: cio error handling

2018-12-13 Thread Farhan Ali
On 12/12/2018 09:11 AM, Jason J. Herne wrote: Add verbose error output for when unexpected i/o errors happen. This eases the burden of debugging and reporting i/o errors. No error information is printed in the success case, here is an example of what is output on error: vfio-ccw device I/O er

[Qemu-devel] [RFC v1 1/1] qemu-iotests: Fix output for testcase 082

2018-10-08 Thread Farhan Ali
Commit 9cbef9d68ee: qemu-option: improve qemu_opts_print_help() output, changed some of the output for qemu-img tool but did not update the corresponding 082 test case file. This broke qemu-iotests. Signed-off-by: Farhan Ali --- tests/qemu-iotests/082.out | 956

Re: [Qemu-devel] [RFC v1 1/1] qemu-iotests: Fix output for testcase 082

2018-10-16 Thread Farhan Ali
On 10/15/2018 11:45 AM, Max Reitz wrote: 082 is failing for me on master (046936ed), and this fixes it. I'm wondering if/why other people are not running into this, as 082 runs with qcow2 and is included on `make check-block`. + Max, FIY, I ran into this while reviewing/testing your Python

Re: [Qemu-devel] [PATCH 1/4] MAINTAINERS: s390: more maintainers for vfio-ccw

2018-10-29 Thread Farhan Ali
+++ b/MAINTAINERS @@ -1204,6 +1204,8 @@ F: include/hw/vfio/ vfio-ccw M: Cornelia Huck +M: Eric Farman +M: Farhan Ali S: Supported F: hw/vfio/ccw.c F: hw/s390x/s390-ccw.c Acked-by: Farhan Ali

Re: [Qemu-devel] [PATCH 0/3] vfio-ccw: support hsch/csch (kernel part)

2018-11-26 Thread Farhan Ali
On 11/22/2018 11:54 AM, Cornelia Huck wrote: [This is the Linux kernel part, git tree is available at https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git vfio-ccw-caps The companion QEMU patches are available at https://github.com/cohuck/qemu vfio-ccw-caps] Currently, vfio-

Re: [Qemu-devel] [PATCH 1/3] vfio-ccw: add capabilities chain

2018-11-27 Thread Farhan Ali
On 11/22/2018 11:54 AM, Cornelia Huck wrote: diff --git a/drivers/s390/cio/vfio_ccw_private.h b/drivers/s390/cio/vfio_ccw_private.h index 078e46f9623d..a6f9f84526e2 100644 --- a/drivers/s390/cio/vfio_ccw_private.h +++ b/drivers/s390/cio/vfio_ccw_private.h @@ -3,9 +3,11 @@ * Private stuff f

Re: [Qemu-devel] [PATCH 3/3] vfio-ccw: add handling for asnyc channel instructions

2018-11-27 Thread Farhan Ali
On 11/22/2018 11:54 AM, Cornelia Huck wrote: Add a region to the vfio-ccw device that can be used to submit asynchronous I/O instructions. ssch continues to be handled by the existing I/O region; the new region handles hsch and csch. Interrupt status continues to be reported through the same

Re: [Qemu-devel] [PATCH 3/3] vfio-ccw: add handling for asnyc channel instructions

2018-11-27 Thread Farhan Ali
On 11/22/2018 11:54 AM, Cornelia Huck wrote: diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 565669f95534..c01472ec77ea 100644 --- a/include/uapi/linux/vfio.h +++ b/include/uapi/linux/vfio.h @@ -304,6 +304,7 @@ struct vfio_region_info_cap_type { #define VFIO_REGION_S

Re: [Qemu-devel] [PATCH 3/3] vfio-ccw: add handling for asnyc channel instructions

2018-11-28 Thread Farhan Ali
On 11/28/2018 04:02 AM, Cornelia Huck wrote: On Tue, 27 Nov 2018 14:09:49 -0500 Farhan Ali wrote: On 11/22/2018 11:54 AM, Cornelia Huck wrote: Add a region to the vfio-ccw device that can be used to submit asynchronous I/O instructions. ssch continues to be handled by the existing I/O

Re: [Qemu-devel] [PATCH 3/3] vfio-ccw: add handling for asnyc channel instructions

2018-11-28 Thread Farhan Ali
On 11/28/2018 09:52 AM, Cornelia Huck wrote: On Wed, 28 Nov 2018 09:31:51 -0500 Farhan Ali wrote: On 11/28/2018 04:02 AM, Cornelia Huck wrote: On Tue, 27 Nov 2018 14:09:49 -0500 Farhan Ali wrote: On 11/22/2018 11:54 AM, Cornelia Huck wrote: Add a region to the vfio-ccw device that

Re: [Qemu-devel] [PATCH 3/3] vfio-ccw: add handling for asnyc channel instructions

2018-11-28 Thread Farhan Ali
On 11/28/2018 10:35 AM, Cornelia Huck wrote: On Wed, 28 Nov 2018 10:00:59 -0500 Farhan Ali wrote: On 11/28/2018 09:52 AM, Cornelia Huck wrote: On Wed, 28 Nov 2018 09:31:51 -0500 Farhan Ali wrote: On 11/28/2018 04:02 AM, Cornelia Huck wrote: On Tue, 27 Nov 2018 14:09:49 -0500 Farhan

[Qemu-devel] qemu-iotests 232 fails when running the test as root user

2018-11-29 Thread Farhan Ali
Hi, I am seeing a failure of the qemu-iotest number 232 when running the test as a root user. Is this the expected behavior? Here is the output of the failure: sudo ./check -qcow2 232 QEMU -- "/home/alifm/kvmdev/qemu/tests/qemu-iotests/../../x86_64-softmmu/qemu-system-x86_64" -nod

Re: [Qemu-devel] qemu-iotests 232 fails when running the test as root user

2018-11-29 Thread Farhan Ali
On 11/29/2018 04:07 PM, Eric Blake wrote: On 11/29/18 3:03 PM, Farhan Ali wrote: Hi, I am seeing a failure of the qemu-iotest number 232 when running the test as a root user. Is this the expected behavior? Here is the output of the failure: -QEMU_PROG: -drive driver=file,file

Re: [Qemu-devel] [RFC for 3.1? or 4 v2 1/1] qemu-iotests: Don't run the test when user is root

2018-11-30 Thread Farhan Ali
On 11/30/2018 12:50 PM, Eric Blake wrote: Adding qemu-devel - all patches should go there, especially if you want to get Peter's attention that this might be a 3.1 candidate if we have other reasons to spin -rc4. On 11/30/18 10:04 AM, Farhan Ali wrote: Test 232 creates image files

[Qemu-devel] [RFC for 3.1? or 4 v3 1/1] qemu-iotests: Don't run the test when user is root

2018-11-30 Thread Farhan Ali
Test 232 creates image files with read-only permission and expects an error message when trying to access the image files with read-only and auto-read-only turned off. Don't run as root user, since root can open files with read/write access for read-only files. Signed-off-by: Farha

Re: [Qemu-devel] [RFC for 3.1? or 4 v3 1/1] qemu-iotests: Don't run the test when user is root

2018-11-30 Thread Farhan Ali
On 11/30/2018 03:52 PM, Eric Blake wrote: On 11/30/18 2:37 PM, Farhan Ali wrote: Test 232 creates image files with read-only permission and expects an error message when trying to access the image files with read-only and auto-read-only turned off. Don't run as root user, since roo

[Qemu-devel] [Bug 1808928] [NEW] Bitmap Extra data is not supported

2018-12-17 Thread Ali Sag
Public bug reported: i am using dirty bitmaps and drive-backup. It works as aspected. Lately, i encounter a disastrous error. There is not any information about that situation. I cannot reach/open/attach/info or anything with a qcow2 file. virsh version Compiled against library: libvirt 4.10.0 U

[Qemu-devel] [Bug 1810400] [NEW] Failed to make dirty bitmaps writable: Can't update bitmap directory: Operation not permitted

2019-01-03 Thread Ali Sag
Public bug reported: blockcommit does not work if there is dirty block. virsh version Compiled against library: libvirt 4.10.0 Using library: libvirt 4.10.0 Using API: QEMU 4.10.0 Running hypervisor: QEMU 2.12.0 Scenario: 1. Create an instance 2. Add dirty bitmap to vm disk. 3. create a snapshot

[Qemu-devel] [BUG?] aio_get_linux_aio: Assertion `ctx->linux_aio' failed

2018-07-17 Thread Farhan Ali
Hi, I am seeing some strange QEMU assertion failures for qemu on s390x, which prevents a guest from starting. Git bisecting points to the following commit as the source of the error. commit ed6e2161715c527330f936d44af4c547f25f687e Author: Nishanth Aravamudan Date: Fri Jun 22 12:37:00 2018 -0

  1   2   3   >