[Qemu-devel] [Bug 1429841] [NEW] error "rom: requested regions overlap" for NOLOAD sections

2015-03-09 Thread Roman
Public bug reported: command line: qemu-system-arm -semihosting -nographic -monitor null -serial null -no-reboot -kernel build/fw/0HNFcomSLuP1_CUNIT.elf output: rom: requested regions overlap (rom phdr #6: build/fw/0HNFcomSLuP1_CUNIT.elf. free=0x8001effc, addr=0x8001c000) rom loading failed I

[Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections

2015-03-11 Thread Roman
I did a test (with version 2.2.0) to simply not fail out upon this error (removed the "return -1" in function rom_load_all() in file hw/core/loader.c). With that hack I got the elf file running I'll attach with *this* comment (note that attachment #1 won't run correctly but probably for some othe

[Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections

2015-03-11 Thread Roman
additional info: 0MFWSL_EmoDatauP1_CUNIT.elf from previous post runs fine with 1.0.50 (Debian 1.0.50-2012.03-0ubuntu2.1) and 0.10.2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429841 Title: err

[Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections

2015-03-11 Thread Roman
To make things more easy I added some debug output to function rom_load_all(). It prints infos for every rom section is processes: rom phdr #1: 0MFWSL_EmoDatauP1_CUNIT.elf. free=0x, size=0x003c, addr=0x) rom phdr #2: 0MFWSL_EmoDatauP1_CUNIT.elf. free=0x

[Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections

2016-10-19 Thread Roman
Retest with qemu 2.7.0: issue still occours Same fix works for me: removed 'return -1;' in function rom_check_and_register_reset() (line 1030 of file hw/core/loader.c) ** Tags added: qemu -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QE

[Qemu-devel] [Bug 1636126] [NEW] qemu-system-arm segfaults on "smulbb r7, r5, r5"

2016-10-24 Thread Roman
Public bug reported: I'll attach a binary that runs fine with qemu-system-arm V2.2.0 but V2.7.0 segfaults. By stepping through with gdb I found that the segfaults happens when executing the line "smulbb r7, r5, r5" (where r7=0x1, r5=0x12). I'll also attach a debugger screenshot. call and output

[Qemu-devel] [Bug 1636126] Re: qemu-system-arm segfaults on "smulbb r7, r5, r5"

2016-10-24 Thread Roman
in the screenshot one can see the assembler line that fails ** Attachment added: "Debugger screenshot" https://bugs.launchpad.net/qemu/+bug/1636126/+attachment/4766312/+files/Screenshot_Debugger.png -- You received this bug notification because you are a member of qemu- devel-ml, which is su

[Qemu-devel] [Bug 1636126] Re: qemu-system-arm segfaults on "smulbb r7, r5, r5"

2016-10-24 Thread Roman
Hi Peter! Thank you for your help, it works fine with "-M integratprcp -cpu cortex-m4" but I might choose another board as you suggested. I didn't have in mind that we switched to M4 instruction set. Where do I get the information that integratorcp is not good for cortex-M3? Or better question:

[Qemu-devel] [Bug 1636126] Re: qemu-system-arm segfaults on "smulbb r7, r5, r5"

2016-10-24 Thread Roman
Tried to run cortex-M4 command on M3. ** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1636126 Title: qemu-system-arm segfaults on "smulbb r7, r5, r5

[Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections

2017-12-14 Thread Roman
Just tested with QEMU 2.10.93 in cygwin: problem does not occour anymore! Thanks a lot! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429841 Title: error "rom: requested regions overlap" for NOLO

[Qemu-devel] [Bug 1738202] [NEW] qemu 2.11 segfaults on elf file that worked with qemu2.7

2017-12-14 Thread Roman
Public bug reported: running on cygwin in Windows 7 QEMU 2.10.93 segfaults: $ /opt/qemu2.11/qemu-system-arm -M integratorcp -cpu cortex-m4 -semihosting -nographic -monitor null -serial null -no-reboot -kernel MFWso_Cycle_f1uP2_CUNIT_0.elf Segmentation fault where QEMU 2.7.0 worked: $ /opt/qemu

[Qemu-devel] [Bug 1738202] Re: qemu 2.11 segfaults on elf file that worked with qemu2.7

2017-12-14 Thread Roman
Thanks Peter for this information! I guess our code was tweaked to run with this options a long time ago - so I will have to do some investigations to get it working with a valid NVIC... As of writing I remember having a similar issue some time ago (which I now found to have resulted in Bug 1636

Re: [Qemu-devel] Bug#757927: [qemu-kvm] TRIM (discard=unmap) broken in 2.1

2014-08-13 Thread Roman Mamedov
.com/7/1407910491.666.2014-07-16T130602Z-trim.png I was only successful in using this with the virtual IDE interface disks on Qemu/KVM 2.0, the virtio mode does not seem to support TRIM; did not try with sata/ahci. -- With respect, Roman signature.asc Description: PGP signature

Re: [Qemu-devel] [PATCH v2] vnc: disable VNC password authentication (security type 2) when in FIPS mode

2012-06-11 Thread Roman Drahtmueller
and 2 also by software. Level 1 says that the solution must only use approved algorythms, but there is no requirement about enforcing this. Level 2 requires enforcement. As a consequence, for qemu to be able to run with a crypto library that is FIPS-140-2 certified, it should be aware of the FIPS mode if there is any, and refrain from initializing cryptography that is not allowable (crypt(3) aka DES, but also MD5 (is a no-go)). In addition to that, qemu must not have any own algorythm implementations (convenient...). > Alex Thanks, Roman.

Re: [Qemu-devel] [PATCH v3] qga: add guest-set-user-password command

2015-02-12 Thread Roman Kagan
, and using guest-exec to perform it. IMO the question is how low the bar is to extend the qga protocol with yet another general-purpose (i.e. not virtual machine-specific) OS management task. I'd rather see it out of scope for qga. Instead, such an upper management layer, if necessary, would bring its own agent, with qga acting as a transport. This way e.g. OpenStack would be able to uniformly change admin passwords also in ESXi, Parallels Server, LXC, OpenVz, physical servers, etc. Roman.

Re: [Qemu-devel] [PATCH v2] qga: add guest-set-admin-password command

2015-02-04 Thread Roman Kagan
do from a user belonging to a particular group (IIRC Ubuntu is usually set up like that). > NB windows support is desirable, but not implemented in this > patch. Yes Windows may have an issue with username here too, because the admin user can be any user (and even "Administrator" can be localized). Roman.

Re: [Qemu-devel] [PATCH 1/2] block: use fallocate(FALLOC_FL_ZERO_RANGE) in handle_aiocb_write_zeroes

2014-12-26 Thread Roman Kagan
On Thu, Dec 25, 2014 at 08:37:29AM +0300, Denis V. Lunev wrote: > +#ifdef CONFIG_FALLOCATE_ZERO_RANGE > +do { > +if (fallocate(s->fd, CONFIG_FALLOCATE_ZERO_RANGE, Must be a typo, FALLOC_FL_ZERO_RANGE is what you mean. Roman.

Re: [Qemu-devel] [PATCH 2/2] block: use fallocate(FALLOC_FL_PUNCH_HOLE) & fallocate(0) to write zeroes

2014-12-26 Thread Roman Kagan
is suboptimal in that fallocate(FALLOC_FL_ZERO_RANGE) would always be called in vain for such systems. Might be worth another flag in BDRVRawState? Roman.

Re: [Qemu-devel] [PATCH 14/19] block/parallels: create catalog_offset helper

2015-01-13 Thread Roman Kagan
c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) Acked-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH 15/19] block/parallels: rename catalog_ names to bat_

2015-01-13 Thread Roman Kagan
; --- > block/parallels.c | 48 > 1 file changed, 24 insertions(+), 24 deletions(-) Acked-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH 13/19] block/parallels: store ParallelsHeader to the BDRVParallelsState

2015-01-13 Thread Roman Kagan
tefan Hajnoczi > --- > block/parallels.c | 19 ++- > 1 file changed, 10 insertions(+), 9 deletions(-) Acked-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH 16/19] block/parallels: no need to flush on each block allocation table update

2015-01-13 Thread Roman Kagan
dded to the file, you'd have two bat entries pointing at the same cluster. The _sync version used to leave this window quite narrow due to the flush following the write. The patch makes the reordering more likely. I'm afraid the only reliable way to handle it is to put a barrier between truncate and bat update, and mitigate the costs by batching the file expansions, as you seem to do in the followup patches. Roman.

Re: [Qemu-devel] [PATCH 16/19] block/parallels: no need to flush on each block allocation table update

2015-01-14 Thread Roman Kagan
On Tue, Jan 13, 2015 at 11:16:04PM +0300, Denis V. Lunev wrote: > On 13/01/15 18:17, Denis V. Lunev wrote: > >On 13/01/15 17:50, Roman Kagan wrote: > >>On Tue, Dec 30, 2014 at 01:07:09PM +0300, Denis V. Lunev wrote: > >>>--- a/block/parallels.c > >>>+++

Re: [Qemu-devel] [PATCH 17/19] block/parallels: delay writing to BAT till bdrv_co_flush_to_os

2015-01-14 Thread Roman Kagan
flush_to_os(BlockDriverState *bs) > +{ > +BDRVParallelsState *s = bs->opaque; > +int ret; > + > +qemu_co_mutex_lock(&s->lock); > +ret = write_bat_cache(bs); > +qemu_co_mutex_unlock(&s->lock); > + > +return ret; > +} > + > + > static int cluster_remainder(BDRVParallelsState *s, int64_t sector_num, > int nb_sectors) > { > @@ -387,6 +474,7 @@ exit: > static void parallels_close(BlockDriverState *bs) > { > BDRVParallelsState *s = bs->opaque; > +qemu_vfree(s->bat_cache); Don't you need to flush the bat cache here first? > g_free(s->bat); > } > > @@ -416,6 +504,7 @@ static BlockDriver bdrv_parallels = { > .bdrv_open = parallels_open, > .bdrv_close = parallels_close, > .bdrv_co_get_block_status = parallels_co_get_block_status, > +.bdrv_co_flush_to_os = parallels_co_flush_to_os, > .bdrv_co_readv = parallels_co_readv, > .bdrv_co_writev = parallels_co_writev, Roman.

Re: [Qemu-devel] [PATCH 17/19] block/parallels: delay writing to BAT till bdrv_co_flush_to_os

2015-01-14 Thread Roman Kagan
On Wed, Jan 14, 2015 at 04:08:50PM +0300, Denis V. Lunev wrote: > On 14/01/15 16:03, Roman Kagan wrote: > >On Tue, Dec 30, 2014 at 01:07:10PM +0300, Denis V. Lunev wrote: > >>+static int cache_bat(BlockDriverState *bs, uint32_t idx, uint32_t > >>new_data_off) >

Re: [Qemu-devel] [PATCH 18/19] block/parallels: add prealloc-mode and prealloc-size open paramemets

2015-01-14 Thread Roman Kagan
fied. I think it would make sense to consolidate that option with this new batched allocation in the generic block code. I guess qcow2 and raw-posix would benefit from it, too. At any rate I think it's a matter for a separate patchset. Roman.

Re: [Qemu-devel] [PATCH 18/19] block/parallels: add prealloc-mode and prealloc-size open paramemets

2015-01-14 Thread Roman Kagan
On Wed, Jan 14, 2015 at 05:31:20PM +0300, Denis V. Lunev wrote: > On 14/01/15 17:26, Roman Kagan wrote: > >On Tue, Dec 30, 2014 at 01:07:11PM +0300, Denis V. Lunev wrote: > >>This is preparational commit for tweaks in Parallels image expansion. > >>The idea is that enlar

Re: [Qemu-devel] [PATCH 19/19] block/parallels: optimize linear image expansion

2015-01-14 Thread Roman Kagan
gt; +++ b/block/parallels.c > @@ -82,6 +82,7 @@ typedef struct BDRVParallelsState { > int bat_cache_off; > int data_off; > > +int64_t prealloc_off; This field name confused me. I think "data_end" would fit better. Otherwise looks good to me. Roman.

Re: [Qemu-devel] [PATCH 11/16] block/parallels: add support for backing files

2014-12-15 Thread Roman Kagan
On Mon, Dec 15, 2014 at 01:30:03PM +0100, Kevin Wolf wrote: > Am 15.12.2014 um 09:27 hat Denis V. Lunev geschrieben: > > From: Roman Kagan > > > > Add backing file support to Parallels format driver. > > > > That said, I think backing file operations should end

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

2015-04-28 Thread Roman Kagan
ment about locking considerations in the driver. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 54 +- > 1 file changed, 33 insertions(+), 21 deletions(-) Reviewed-by: Roman Kagan

Re: [Qemu-devel] [PATCH 08/27] block/parallels: mark parallels format driver as zero inited

2015-04-28 Thread Roman Kagan
On Tue, Apr 28, 2015 at 10:46:41AM +0300, Denis V. Lunev wrote: > From the guest point of view unallocated blocks are zeroed. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 1 + > 1 file change

Re: [Qemu-devel] [PATCH 26/27] block/parallels: optimize linear image expansion

2015-04-28 Thread Roman Kagan
older truncate() > could be used as a fallback using image open options thanks to the > previous patch. > > The benefit is around 15%. > > Signed-off-by: Denis V. Lunev > Reviewed-by: Roman Karan s/Karan/Kagan/ > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- >

Re: [Qemu-devel] [PATCH 09/27] block/parallels: _co_writev callback for Parallels format

2015-04-28 Thread Roman Kagan
On Tue, Apr 28, 2015 at 10:46:42AM +0300, Denis V. Lunev wrote: > 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 > CC: Roman Kagan > CC: Kevin Wolf >

Re: [Qemu-devel] [PATCH 25/27] block/parallels: add prealloc-mode and prealloc-size open paramemets

2015-04-28 Thread Roman Kagan
or the image expansion > - tail writes are ordered, i.e. the guest IO queue could not be sent > immediately to the host introducing additional IO delays > > This patch just adds proper parameters into BDRVParallelsState and > performs options parsing in parallels_open. > >

Re: [Qemu-devel] [PATCH 25/27] block/parallels: add prealloc-mode and prealloc-size open paramemets

2015-04-29 Thread Roman Kagan
On Tue, Apr 28, 2015 at 01:59:56PM +0300, Roman Kagan wrote: > On Tue, Apr 28, 2015 at 10:46:58AM +0300, Denis V. Lunev wrote: > > This is preparational commit for tweaks in Parallels image expansion. > > The idea is that enlarge via truncate by one data block is slow. It > >

Re: [Qemu-devel] [PATCH 15/27] block/parallels: keep BAT bitmap data in little endian in memory

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 11:51:09AM +0300, Denis V. Lunev wrote: > This will allow to use this data as buffer to BAT update directly > without any intermediate buffers. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- &

Re: [Qemu-devel] [PATCH 14/27] block/parallels: create bat2sect helper

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 11:51:08AM +0300, Denis V. Lunev wrote: > deduplicate copy/paste arithmetcs > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 12 +--- > 1 file changed, 9

Re: [Qemu-devel] [PATCH 21/27] block/parallels: no need to flush on each block allocation table update

2015-03-10 Thread Roman Kagan
1.hds > from 45 Mb/sec to 160 Mb/sec on my SSD disk. The gain on rotational media > is much more sufficient, from 800 Kb/sec to 45 Mb/sec. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 2 +-

Re: [Qemu-devel] [PATCH 24/27] block/parallels: delay writing to BAT till bdrv_co_flush_to_os

2015-03-10 Thread Roman Kagan
64k ./1.hds 64G > qemu-io -f parallels -c "write -P 0x11 0 1024k" 1.hds > writing from 50-60 Mb/sec to 80-90 Mb/sec on rotational media and > from 160 Mb/sec to 190 Mb/sec on SSD disk. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin

Re: [Qemu-devel] [PATCH 19/27] block/parallels: implement incorrect close detection

2015-03-10 Thread Roman Kagan
BDRVParallelsState for this. > > On the other hand, nothing should be done to clear inuse in > parallels_check. Generic close will do the job right. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 5

Re: [Qemu-devel] [PATCH 20/27] iotests, parallels: check for incorrectly closed image in tests

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 11:51:14AM +0300, Denis V. Lunev wrote: > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > tests/qemu-iotests/115 | 9 + > tests/qemu-iotests/115.out | 19 ++- > 2 file

Re: [Qemu-devel] [PATCH 25/27] block/parallels: add prealloc-mode and prealloc-size open paramemets

2015-03-10 Thread Roman Kagan
pand by some significant amount at once. > > This patch just adds proper parameters into BDRVParallelsState and > performs options parsing in parallels_open. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajno

Re: [Qemu-devel] [PATCH 18/27] block/parallels: implement parallels_check method of block driver

2015-03-10 Thread Roman Kagan
mage are zeroed. Nothing else could be done here > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 82 > +++ > 1 file changed, 82 insertions(+) &

Re: [Qemu-devel] [PATCH 16/27] block/parallels: read parallels image header and BAT into single buffer

2015-03-10 Thread Roman Kagan
V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 24 +--- > 1 file changed, 17 insertions(+), 7 deletions(-) Reviewed-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH 23/27] block/parallels: create bat_entry_off helper

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 11:51:17AM +0300, Denis V. Lunev wrote: > calculate offset of the BAT entry in the image file. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 15 +-- > 1

Re: [Qemu-devel] [PATCH 19/27] block/parallels: implement incorrect close detection

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 05:44:19PM +0300, Denis V. Lunev wrote: > On 10/03/15 17:38, Roman Kagan wrote: > >On Tue, Mar 10, 2015 at 11:51:13AM +0300, Denis V. Lunev wrote: > >>The software driver must set inuse field in Parallels header to > >>0x746F6E59 when the image i

Re: [Qemu-devel] [PATCH 17/27] block/parallels: move parallels_open/probe to the very end of the file

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 11:51:11AM +0300, Denis V. Lunev wrote: > This will help to avoid forward declarations for upcoming parallels_check > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- >

Re: [Qemu-devel] [PATCH 22/27] block/parallels: improve image reading performance

2015-03-10 Thread Roman Kagan
On Tue, Mar 10, 2015 at 11:51:16AM +0300, Denis V. Lunev wrote: > Try to perform IO for the biggest continuous block possible. > The performance for sequential read is increased from 220 Gb/sec to > 360 Gb/sec for continous image on my SSD HDD. > > Signed-off-by: Denis V. Lunev &g

Re: [Qemu-devel] [PATCH 26/27] block/parallels: optimize linear image expansion

2015-03-10 Thread Roman Karan
older truncate() > could be used as a fallback using image open options thanks to the > previous patch. > > The benefit is around 15%. Reviewed-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH 27/27] block/parallels: improve image writing performance further

2015-03-11 Thread Roman Kagan
ential write is increased from 200 Gb/sec to > 235 Gb/sec on my SSD HDD. > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 44 > 1 file changed, 24 insertions(+),

Re: [Qemu-devel] [PATCH 18/27] block/parallels: implement parallels_check method of block driver

2015-03-11 Thread Roman Kagan
mage are zeroed. Nothing else could be done here > > Signed-off-by: Denis V. Lunev > CC: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 85 > +++ > 1 file changed, 85 insertions(+) Reviewed-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-09 Thread Roman Kagan
to (ab)use MSI for SINT delivery, though. Anyway the need to implement auto-EOI rules that out. Thanks for the quick review, we'll try to address your comments in the next round. Roman.

Re: [Qemu-devel] [PATCH 2/2] kvm/x86: Hyper-V kvm exit

2015-10-09 Thread Roman Kagan
s to the next instruction. Hence the exit, to allow the userspace to react accordingly before reentering the guest. Roman.

Re: [Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-12 Thread Roman Kagan
eem to be the only special one. > > Great. Roman, Denis, can you do this then? Sure, gonna be in the next round. Thanks, Roman.

Re: [Qemu-devel] [PATCH 2/2] kvm/x86: Hyper-V kvm exit

2015-10-12 Thread Roman Kagan
writing to the > Again, is 'synic' intended? Hmm, I see it throughout the patch, so it > looks intentional, but I keep trying to read it as a typo for 'sync'. I tend to mistype it as 'cynic' as better matching what it is ;) Note taken, we'll address that in the next round, thanks. Roman.

Re: [Qemu-devel] [PATCH v3 8/9] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-29 Thread Roman Kagan
. While Andrey is testing it, I'd like to ask similar question re. MSI: why is there a "shortcut" for KVM_IRQ_ROUTING_MSI case (which we basically modelled after) when it would probably get handled through ->set handler in irqfd_inject() too? Roman.

Re: [Qemu-devel] [kvm-unit-tests PATCH] x86: hyperv_synic: Hyper-V SynIC test

2015-11-02 Thread Roman Kagan
r-V SynIC MSR's > > * setup Hyper-V SynIC evt/msg pages > > * setup SINT's routing > > * inject SINT's into destination vCPU by 'hyperv-synic-test-device' > > * wait for SINT's isr's completion > > * clear Hyper-V SynIC evt/msg pages and

Re: [Qemu-devel] [PATCH v3 9/9] kvm/x86: Hyper-V kvm exit

2015-11-03 Thread Roman Kagan
t the host doesn't support it, and then check for the property only when deciding if the relevant actions need to be taken. Protecting vcpu exits with !host in the kernel seems to make sense, too. We're in progress of preparing the updated patches. Thanks, Roman.

Re: [Qemu-devel] [PATCH v7 3/3] i386: populate floppy drive information in DSDT

2016-02-08 Thread Roman Kagan
On Sun, Feb 07, 2016 at 11:08:07AM +0200, Michael S. Tsirkin wrote: > On Tue, Jan 26, 2016 at 02:50:25PM +0100, Igor Mammedov wrote: > > From: Roman Kagan > > -static Aml *build_fdc_device_aml(void) > > +static Aml *build_fdinfo_aml(int idx, uint8_t ty

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-08 Thread Roman Kagan
bounds. As a result, seek fails when QEMU denies to move the current track, but reports success anyway. This can confuse the guest, leading to kernel panics in the guest. Signed-off-by: John Snow Reviewed-by: Eric Blake Message-id: 1454106932-17236-1-git-send-email-js...@redhat.com Roman.

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-09 Thread Roman Kagan
On Mon, Feb 08, 2016 at 03:20:47PM -0500, John Snow wrote: > On 02/08/2016 08:14 AM, Roman Kagan wrote: > > On Fri, Feb 05, 2016 at 07:25:07PM +0100, Igor Mammedov wrote: > >>> +aml_append(fdi, > >>> +aml_int(cylinders - 1)); /* Maximum Cylinder Num

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-10 Thread Roman Kagan
untime so I thought I wasn't doing worse than it was. As for what to do now, I'll try to check how tolerant the guests are of changing the floppy geometry under them without updating _FDI, and then decide. Roman.

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-10 Thread Roman Kagan
the *absolute minimum* to adapt this AML generation patch to > John's FDC rework, and ignore all dynamic aspects (like media change). Hopefully that'll suffice. Roman.

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-10 Thread Roman Kagan
AH.3D08h:_Read_Drive_Parameters and, as I wrote in another mail, the SeaBIOS implementation here is rather simplistic. > Roman, does the 0xFF "empty disk geometry" hack appear to work for > Windows 10? > > Maybe it's fine enough as-is, as per Laszlo's good synopsis here. I'll test and let you know. Roman.

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-10 Thread Roman Kagan
On Wed, Feb 10, 2016 at 12:16:32PM -0500, John Snow wrote: > On 02/10/2016 12:10 PM, Roman Kagan wrote: > > Well, as I wrote in another mail, SeaBIOS, which is supposed to provide > > the same information to int 0x13/0x08, populates it with static data > > based only on the

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-17 Thread Roman Kagan
n the drive, > but the maximum capability of the specified drive". Thanks for the info, I've re-implemented the patchset according to it and Windows guests (w2k12, w10) seem to be happy with it, including dynamically (re-)inserting the "diskette" of compatible size. I'll submit the patches shortly. Thanks, Roman.

[Qemu-devel] [PATCH v8 0/4] i386: expose floppy-related objects in SSDT

2016-02-17 Thread Roman Kagan
description into runtime-generated SSDT. Roman Kagan (4): i386/acpi: make floppy controller object dynamic i386: expose floppy drive CMOS type fdc: add function to determine drive chs limits i386: populate floppy drive information in DSDT Signed-off-by: Roman Kagan Cc: Igor Mammedov Cc: "Mich

[Qemu-devel] [PATCH v8 3/4] fdc: add function to determine drive chs limits

2016-02-17 Thread Roman Kagan
matching the given floppy drive type. Signed-off-by: Roman Kagan Cc: Igor Mammedov Cc: "Michael S. Tsirkin" Cc: Marcel Apfelbaum Cc: John Snow Cc: Laszlo Ersek Cc: Kevin O'Connor --- changes since v7: - use drive max c,h,s rather than the current diskette geometry

[Qemu-devel] [PATCH v8 2/4] i386: expose floppy drive CMOS type

2016-02-17 Thread Roman Kagan
Make it possible to query the CMOS type of a floppy drive outside of the source file where it's defined. It will allow to properly populate the corresponding ACPI objects and thus enable Windows on BIOS-less systems to access the floppy drives. Signed-off-by: Roman Kagan Cc: Igor Mammedo

[Qemu-devel] [PATCH v8 4/4] i386: populate floppy drive information in DSDT

2016-02-17 Thread Roman Kagan
VMF. This patch adds those objects to the floppy controller in DSDT, populating them with the information from respective QEMU objects. Signed-off-by: Roman Kagan Cc: Igor Mammedov Cc: "Michael S. Tsirkin" Cc: Marcel Apfelbaum Cc: John Snow Cc: Laszlo Ersek Cc: Kevin O'Connor ---

[Qemu-devel] [PATCH v8 1/4] i386/acpi: make floppy controller object dynamic

2016-02-17 Thread Roman Kagan
the declarations of the fields indicating whether the contoller is enabled. Signed-off-by: Roman Kagan Signed-off-by: Igor Mammedov Reviewed-by: Marcel Apfelbaum Cc: "Michael S. Tsirkin" Cc: John Snow Cc: Laszlo Ersek Cc: Kevin O'Connor --- changes since v7: - remove unn

Re: [Qemu-devel] [RFC 1/1] nbd (specification): add NBD_CMD_WRITE_ZEROES command

2016-02-18 Thread Roman Kagan
arse read where the server would, instead of sending the full length of data in the response payload, send a smarter variable-length package with a scatter-gather list or a bitmap of used blocks in the beginning, and let the client decode it and fill the gaps with zeros. Roman.

Re: [Qemu-devel] [PATCH v1 7/7] kvm/x86: Hyper-V SynIC timers

2015-11-27 Thread Roman Kagan
s of the corresponding configuration > MSR. If deemed necessary, the "catch up" mode (the timer period is > shortened until the timer catches up) will be implemented later. > > Signed-off-by: Andrey Smetanin > CC: Gleb Natapov > CC: Paolo Bonzini > CC: "K.

Re: [Qemu-devel] [PATCH v1 6/7] kvm/x86: Hyper-V SynIC message slot pending clearing at SINT ack

2015-11-27 Thread Roman Kagan
and let the message sources compete for the slot again. > > Signed-off-by: Andrey Smetanin > CC: Gleb Natapov > CC: Paolo Bonzini > CC: "K. Y. Srinivasan" > CC: Haiyang Zhang > CC: Vitaly Kuznetsov > CC: Roman Kagan > CC: Denis V. Lunev > CC: qemu-devel@nongnu.org Reviewed-by: Roman Kagan Roman.

Re: [Qemu-devel] [PATCH v1 7/7] kvm/x86: Hyper-V SynIC timers

2015-11-30 Thread Roman Kagan
On Fri, Nov 27, 2015 at 11:49:40AM +0100, Paolo Bonzini wrote: [ sorry missed your message on Friday, replying now ] > On 27/11/2015 09:12, Roman Kagan wrote: > >> > +n = div64_u64(time_now - stimer->exp_time, stimer->count) + 1; > >> > +stim

Re: [Qemu-devel] [PATCH for 2.5? 1/1] DSDT: add floppy-related objects

2015-12-14 Thread Roman Kagan
On Mon, Dec 14, 2015 at 04:05:03PM +0100, Igor Mammedov wrote: > On Mon, 14 Dec 2015 11:22:39 +0300 > "Denis V. Lunev" wrote: > > > From: Roman Kagan > > > > On x86-based systems Linux determines the presence and the type of > > floppy drives via a q

Re: [Qemu-devel] [PATCH v2 1/1] i386: expose floppy-related objects in SSDT

2015-12-16 Thread Roman Kagan
sting series under review, > I'd suggest to put it before: > > if (misc->applesmc_io_base) { No prob, will do in v2. Thanks, Roman.

Re: [Qemu-devel] [PATCH v5 0/6] i386: expose floppy-related objects in SSDT

2016-01-11 Thread Roman Kagan
On Mon, Jan 11, 2016 at 02:51:15PM +0100, Igor Mammedov wrote: > On Wed, 30 Dec 2015 23:11:50 +0300 > Roman Kagan wrote: > > > Windows on UEFI systems is only capable of detecting the presence and > > the type of floppy drives via corresponding ACPI objects. > > >

Re: [Qemu-devel] [PATCH v5 0/6] i386: expose floppy-related objects in SSDT

2016-01-11 Thread Roman Kagan
On Mon, Jan 11, 2016 at 03:47:24PM +0100, Igor Mammedov wrote: > On Mon, 11 Jan 2016 17:26:26 +0300 > Roman Kagan wrote: > > > On Mon, Jan 11, 2016 at 02:51:15PM +0100, Igor Mammedov wrote: > > > I've rebased/rewrote this series on top of current PCI tree. > &

Re: [Qemu-devel] [PATCH v6 0/3] i386: expose floppy-related objects in SSDT

2016-01-13 Thread Roman Kagan
>which simplifies code a bit. > Roman, > I don't have OVMF+Win setup, > Could you test this series and reply with Tested-by if it works? Sure. I just did a brief test booting qemu (master + this series) with RHEL7 OVMF off an installation DVD image for w2k8r2sp1 and w2k12r2, c

Re: [Qemu-devel] [PATCH v5 0/6] i386: expose floppy-related objects in SSDT

2016-01-13 Thread Roman Kagan
On Wed, Jan 13, 2016 at 03:36:18PM +0100, Laszlo Ersek wrote: > On 12/30/15 21:11, Roman Kagan wrote: > > Windows on UEFI systems is only capable of detecting the presence and > > the type of floppy drives via corresponding ACPI objects. > > I'm late to the party, but

Re: [Qemu-devel] [PATCH v5 0/6] i386: expose floppy-related objects in SSDT

2016-01-13 Thread Roman Kagan
On Wed, Jan 13, 2016 at 06:49:44PM +0300, Roman Kagan wrote: > On Wed, Jan 13, 2016 at 03:36:18PM +0100, Laszlo Ersek wrote: > > On 12/30/15 21:11, Roman Kagan wrote: > > > Windows on UEFI systems is only capable of detecting the presence and > > > the type of floppy dr

Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit

2016-01-14 Thread 'Roman Kagan'
. KVM already has to make the decision that the particular vmexit is a HyperV hypercall; it appears unnatural to then pass the data on to userspace in a generic structure and have them make that decision again. Roman.

Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit

2016-01-14 Thread 'Roman Kagan'
ving a vcpu exit code. > I'm afraid that in future we can end up in having 10 versions of > KVM_EXIT_xxx_HYPERCALL with very small difference between them. > Will it be good? I don't see it to be a problem. Roman.

Re: [Qemu-devel] [PATCH v1] kvm/x86: Hyper-V tsc page setup

2016-01-20 Thread Roman Kagan
d value, skip to the next valid one. I think Paolo wanted to be compatible not only with the de facto implementation in Windows Hyper-V guests, but also with the Linux driver which followed the buggy spec and thought 0x to be invalid. So the change is fine (as long as there's || rather than a space there ;) Thanks, Roman.

Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit

2016-01-20 Thread 'Roman Kagan'
w exit Why? VCPU exit codes are not a scarse resource. > (I suggested elsewhere the existing hyper-v exit) So far we've envisaged two reasons for VCPU exit related to hyper-v: one for hyper-v MSRs and the other for hypercalls. Since there was a discussion on implementing generic MSR access by Peter we thought it wiser to introduce a new VCPU exit for hyper-v hypercalls to avoid interfering with the MSR implementation. Thanks, Roman.

Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit

2016-01-20 Thread Roman Kagan
; > > > Signed-off-by: Andrey Smetanin > > Reviewed-by: Roman Kagan > > CC: Gleb Natapov > > CC: Paolo Bonzini > > CC: Joerg Roedel > > CC: "K. Y. Srinivasan" > > CC: Haiyang Zhang > > CC: Roman Kagan > > CC: Denis V. Lunev >

Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit

2016-01-20 Thread 'Roman Kagan'
On Wed, Jan 20, 2016 at 06:02:25PM +0100, Paolo Bonzini wrote: > > > On 20/01/2016 16:20, 'Roman Kagan' wrote: > >> > So we should not add a new exit > > Why? VCPU exit codes are not a scarse resource. > > Indeed, but grouping makes things easier t

Re: [Qemu-devel] [Qemu-block] [PATCH v4 00/12] fdc: fix 2.88mb floppy diskette support

2016-01-21 Thread Roman Kagan
drive stays the same, and it's only the diskette that can change. I'd guess that the OS driver should do the necessary revalidation on its own, without ACPI assistance; I'll give it a try when I have some time. But again, as you said, people are mainly interested in floppies to bootstrap a Windows installation on virtio disks, so support of floppy geometry update at runtime is non-critical for most users. Thanks, Roman.

Re: [Qemu-devel] [Qemu-block] [PATCH v4 00/12] fdc: fix 2.88mb floppy diskette support

2016-01-21 Thread Roman Kagan
insert different kinds > of diskettes, which does happen in the real world. > > e.g. a 2.88MB capable floppy drive that can read either 1.44MB or 2.88MB > types. That's right; the question WRT ACPI is whether the Windows driver expects the drive parameters or the currently inserted diskette parameters in the ACPI object; I guess the former, so we should be OK with that data generated once at startup. Roman.

Re: [Qemu-devel] [PATCH v2 1/1] i386: expose floppy-related objects in SSDT

2015-12-17 Thread Roman Kagan
On Wed, Dec 16, 2015 at 11:15:55PM +0100, Igor Mammedov wrote: > On Wed, 16 Dec 2015 20:34:55 +0300 > Roman Kagan wrote: > > > On Wed, Dec 16, 2015 at 05:46:57PM +0100, Igor Mammedov wrote: > > > On Wed, 16 Dec 2015 10:45:09 +0300 "Denis V. Lunev" > &

Re: [Qemu-devel] [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit

2015-12-18 Thread 'Roman Kagan'
ff hand why a generic infrastructure wouldn't fit in our usecase. Roman.

Re: [Qemu-devel] [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit

2015-12-18 Thread 'Roman Kagan'
and KVM_EXIT_MSR_HYPERV_SYNIC wouldn't be needed at all. I don't immediately see why it wouldn't work for us; we'd have reused the infrastructure if it existed when we started our work. I didn't see Peter's patches yet; maybe we can come up with an interim solution to fit in the merge window but expose a sufficiently generic API. Roman.

Re: [Qemu-devel] [PATCH v4 5/5] kvm/x86: Hyper-V kvm exit

2015-12-18 Thread Roman Kagan
meant here rather than struct. I hope Andrey will help to shed some light on that when he's back in the office on Monday; meanwhile I think this peculiarity can be ignored. Roman.

[Qemu-devel] [PATCH v3 0/2] i386: expose floppy-related objects in SSDT

2015-12-18 Thread Roman Kagan
Roman Kagan (2): i386: expose floppy-related objects in SSDT tests: update expected SSDT for floppy changes Signed-off-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Michael S. Tsirkin CC: Igor Mammedov CC: Paolo Bonzini CC: Richard Henderson CC: Eduardo Habkost CC: John Snow CC

[Qemu-devel] [PATCH v3 2/2] tests: update expected SSDT for floppy changes

2015-12-18 Thread Roman Kagan
Update the expected SSDTs to reflect the changes introduced in the previous patch. Signed-off-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Michael S. Tsirkin CC: Igor Mammedov CC: Paolo Bonzini CC: Richard Henderson CC: Eduardo Habkost CC: John Snow CC: Kevin Wolf --- changes since

[Qemu-devel] [PATCH v3 1/2] i386: expose floppy-related objects in SSDT

2015-12-18 Thread Roman Kagan
SSDT, populating them via AML API. For that, a couple of functions are extern-ified to facilitate populating those objects in acpi-build.c. Signed-off-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Michael S. Tsirkin CC: Igor Mammedov CC: Paolo Bonzini CC: Richard Henderson CC: Eduardo Habkos

Re: [Qemu-devel] [PATCH v3 1/2] i386: expose floppy-related objects in SSDT

2015-12-22 Thread Roman Kagan
On Tue, Dec 22, 2015 at 05:07:16PM +0200, Michael S. Tsirkin wrote: > On Fri, Dec 18, 2015 at 10:32:29PM +0300, Roman Kagan wrote: > > On x86-based systems Linux determines the presence and the type of > > floppy drives via a query of a CMOS field. So does SeaBIOS when > >

Re: [Qemu-devel] [Qemu-block] [PATCH 00/10] qcow2: Implement image locking

2015-12-23 Thread Roman Kagan
can be extended to other mechanisms like network / cluster / SAN lock managers, etc. In particular, it can be made to talk to virtlockd. Roman.

Re: [Qemu-devel] [PATCH v3 2/2] tests: update expected SSDT for floppy changes

2015-12-23 Thread Roman Kagan
On Tue, Dec 22, 2015 at 06:41:47PM +0200, Michael S. Tsirkin wrote: > On Fri, Dec 18, 2015 at 10:32:30PM +0300, Roman Kagan wrote: > > Update the expected SSDTs to reflect the changes introduced in the > > previous patch. > > > > Signed-off-by: Roman Kagan > &

  1   2   3   4   5   6   7   8   9   10   >