Re: [PATCH v2 09/20] parallels: Make mark_used() and mark_unused() global functions

2023-10-21 Thread Mike Maslenkin
On Thu, Oct 19, 2023 at 5:23 PM Alexander Ivanov wrote: > > We will need these functions in parallels-ext.c too. Let them be global > functions parallels_mark_used() and parallels_mark_unused(). > > Signed-off-by: Alexander Ivanov > --- > block/parallels.c | 22 -- >

Re: [PATCH v2 01/20] parallels: Set s->used_bmap to NULL in parallels_free_used_bitmap()

2023-10-21 Thread Mike Maslenkin
On Thu, Oct 19, 2023 at 4:06 PM Alexander Ivanov wrote: > > After used bitmap freeng s->used_bmap points to the freed memory. If we try > to free used bitmap one more time it leads to double free error. > > Set s->used_bmap to NULL to exclude double free error. > > Signed-off-by: Alexander Ivanov

Re: [PATCH v2 10/20] parallels: Add dirty bitmaps saving

2023-10-21 Thread Mike Maslenkin
On Thu, Oct 19, 2023 at 4:05 PM Alexander Ivanov wrote: > > Now dirty bitmaps can be loaded but there is no their saving. Add code for > dirty bitmap storage. > > Signed-off-by: Alexander Ivanov > --- > block/parallels-ext.c | 167 ++ > block/parallels.c

Re: [PATCH 15/19] parallels: Remove unnecessary data_end field

2023-10-07 Thread Mike Maslenkin
On Sat, Oct 7, 2023 at 5:30 PM Alexander Ivanov wrote: > > > > On 10/7/23 13:21, Mike Maslenkin wrote: > > On Sat, Oct 7, 2023 at 1:18 PM Alexander Ivanov > > wrote: > >> > >> On 10/6/23 21:43, Mike Maslenkin wrote: > >>> On Mon,

Re: [PATCH 15/19] parallels: Remove unnecessary data_end field

2023-10-07 Thread Mike Maslenkin
On Sat, Oct 7, 2023 at 1:18 PM Alexander Ivanov wrote: > > > > On 10/6/23 21:43, Mike Maslenkin wrote: > > On Mon, Oct 2, 2023 at 12:01 PM Alexander Ivanov > > wrote: > >> Since we have used bitmap, field data_end in BDRVParallelsState is > >> r

Re: [PATCH 15/19] parallels: Remove unnecessary data_end field

2023-10-06 Thread Mike Maslenkin
On Mon, Oct 2, 2023 at 12:01 PM Alexander Ivanov wrote: > > Since we have used bitmap, field data_end in BDRVParallelsState is > redundant and can be removed. > > Add parallels_data_end() helper and remove data_end handling. > > Signed-off-by: Alexander Ivanov > --- > block/parallels.c | 33

Re: [PATCH v2 1/1] qemu-img: do not erase destination file in qemu-img dd command

2023-10-01 Thread Mike Maslenkin
er opinions. Regards, Mike. On Sun, Oct 1, 2023 at 3:25 PM Denis V. Lunev wrote: > > On 9/30/23 22:31, Mike Maslenkin wrote: > > Add a check that destination file exists and do not call bdrv_create for > > this case. > > > > Currently `qemu-img dd` command destroys c

[PATCH v2 1/1] qemu-img: do not erase destination file in qemu-img dd command

2023-09-30 Thread Mike Maslenkin
tion image are preserved. As another visible change of `qemu-img dd` behavior is that if destination image is less than source it can finish with error (similar to "dd" utility): qemu-img: error while writing to output image file: Input/output error Signed-off-by: Mike Maslenkin --- d

[PATCH 1/1] qemu-img: do not erase destination file in qemu-img dd command

2023-09-30 Thread Mike Maslenkin
tion image are preserved. As another visible change of `qemu-img dd` behavior is that if destination image is less than source it can finish with error (similar to "dd" utility): qemu-img: error while writing to output image file: Input/output error Signed-off-by: Mike Maslenkin

Re: [PATCH 06/21] parallels: refactor path when we need to re-check image in parallels_open

2023-09-17 Thread Mike Maslenkin
This patch generates a warning. On Fri, Sep 15, 2023 at 9:41 PM Denis V. Lunev wrote: > > More conditions follows thus the check should be more scalable. > > Signed-off-by: Denis V. Lunev > --- > block/parallels.c | 19 --- > 1 file changed, 8 insertions(+), 11 deletions(-) > >

Re: [PATCH 18/21] parallels: naive implementation of parallels_co_pdiscard

2023-09-17 Thread Mike Maslenkin
I got a warning after this patch: ../block/parallels.c:541:25: warning: 'guarded_by' attribute only applies to non-static data members and global variables [-Wignored-attributes] static int coroutine_fn GRAPH_RDLOCK_PTR ^

Re: [PATCH 03/21] parallels: invent parallels_opts_prealloc() helper to parse prealloc opts

2023-09-17 Thread Mike Maslenkin
This is not introduced by this patch, but looks like qemu_opts_del(opts) missed. On Fri, Sep 15, 2023 at 9:41 PM Denis V. Lunev wrote: > > This patch creates above mentioned helper and moves its usage to the > beginning of parallels_open(). This simplifies parallels_open() a bit. > > The patch

Re: Lost partition tables on ide-hd + ahci drive

2023-08-26 Thread Mike Maslenkin
On Wed, Aug 23, 2023 at 12:17 PM Fiona Ebner wrote: > > Am 23.08.23 um 10:47 schrieb Fiona Ebner: > > Am 17.02.23 um 22:22 schrieb Mike Maslenkin: > >> I can not tell anything about dma-reentracy issues, but yes, i would > >> start to look at check_cmd() functio

Re: [PATCH 0/3] hw/ufs: fix compilation warnings

2023-08-02 Thread Mike Maslenkin
Hello All, I'm ok with that. Regards, Mike. On Wed, Aug 2, 2023 at 3:52 AM Jeuk Kim wrote: > > On 8/2/2023 6:03 AM, Philippe Mathieu-Daudé wrote: > > Hi Mike, > > > > On 28/7/23 01:34, Mike Maslenkin wrote: > >> This patchset contains a trivial compilation f

[PATCH 3/3] hw/ufs: change ufs_process_db signature

2023-07-27 Thread Mike Maslenkin
Actually UTRLDBR is 32bit register. There is no need to pass 64bit value to ufs_process_db() function. Cc: Jeuk Kim Cc: Stefan Hajnoczi Signed-off-by: Mike Maslenkin --- hw/ufs/ufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index

[PATCH 2/3] hw/ufs: fix compilation warning

2023-07-27 Thread Mike Maslenkin
); ^~~~ Cc: Jeuk Kim Cc: Stefan Hajnoczi Signed-off-by: Mike Maslenkin --- hw/ufs/ufs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index af32366c8504..b0656e47598e 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c

[PATCH 1/3] hw/ufs: fix compilation warning

2023-07-27 Thread Mike Maslenkin
Signed-off-by: Mike Maslenkin --- hw/ufs/ufs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index 1760e0f88d70..af32366c8504 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c @@ -514,10 +514,10 @@ static UfsReqResult ufs_exec_scsi_cmd(UfsRequest *req

[PATCH 0/3] hw/ufs: fix compilation warnings

2023-07-27 Thread Mike Maslenkin
This patchset contains a trivial compilation fixes for UFS support applied to block-next tree. Cc: Jeuk Kim Cc: Stefan Hajnoczi Signed-off-by: Mike Maslenkin

Re: [PATCH v4 3/5] parallels: Add checking and repairing duplicate offsets in BAT

2023-04-28 Thread Mike Maslenkin
r Ivanov wrote: > > Good point. Thank you. > > Best regards, > Alexander Ivanov > > On 4/26/23 23:56, Mike Maslenkin wrote: > > On Mon, Apr 24, 2023 at 12:44 PM Alexander Ivanov > > wrote: > >> Cluster offsets must be unique among all the BAT entries. Fin

Re: [PATCH v4 3/5] parallels: Add checking and repairing duplicate offsets in BAT

2023-04-27 Thread Mike Maslenkin
Sorry for the noise again , but I have another note On Mon, Apr 24, 2023 at 12:44 PM Alexander Ivanov wrote: > > Cluster offsets must be unique among all the BAT entries. Find duplicate > offsets in the BAT and fix it by copying the content of the relevant > cluster to a newly allocated cluster

Re: [PATCH v4 3/5] parallels: Add checking and repairing duplicate offsets in BAT

2023-04-26 Thread Mike Maslenkin
On Mon, Apr 24, 2023 at 12:44 PM Alexander Ivanov wrote: > > Cluster offsets must be unique among all the BAT entries. Find duplicate > offsets in the BAT and fix it by copying the content of the relevant > cluster to a newly allocated cluster and set the new cluster offset to the > duplicated

Re: [PULL 19/54] acpi: pc: isa bridge: use AcpiDevAmlIf interface to build ISA device descriptors

2023-04-13 Thread Mike Maslenkin
reproduce problem as well. On Thu, Apr 13, 2023 at 3:10 PM Fiona Ebner wrote: > > Am 13.04.23 um 13:46 schrieb Mike Maslenkin: > > Sorry for the noise, but just curious, how did you shutdown Windows? > > Did you use 'shutdown /s' or just press power button? > > Could it be th

Re: [PULL 19/54] acpi: pc: isa bridge: use AcpiDevAmlIf interface to build ISA device descriptors

2023-04-13 Thread Mike Maslenkin
Sorry for the noise, but just curious, how did you shutdown Windows? Did you use 'shutdown /s' or just press power button? Could it be that Windows was actually hibernated. So, when you try to boot it on the new (old) QEMU version with changed PCI topology, this could make it upset. I observed

Re: Lost partition tables on ide-hd + ahci drive

2023-02-17 Thread Mike Maslenkin
thought about race with IDE reset where registers initialized with value SATA_SIGNATURE_DISK = 0x0101, but this means LBA=1 as well... Regards, Mike On Fri, Feb 17, 2023 at 4:40 PM Fiona Ebner wrote: > > Am 16.02.23 um 15:17 schrieb Mike Maslenkin: > > Does additional comparison

Re: Lost partition tables on ide-hd + ahci drive

2023-02-16 Thread Mike Maslenkin
guest OS. In other cases it can be caused by misconfigured IDE registers state or broken FIS memory area. On Thu, Feb 16, 2023 at 6:25 PM Fiona Ebner wrote: > > Am 16.02.23 um 15:17 schrieb Mike Maslenkin: > > Does additional comparison make a sense here: check for LBA == 0 and > &

Re: Lost partition tables on ide-hd + ahci drive

2023-02-16 Thread Mike Maslenkin
Does additional comparison make a sense here: check for LBA == 0 and then check MBR signature bytes. Additionally it’s easy to check buffer_is_zero() result or even print FIS contents under these conditions. Data looks like a part of guest memory of 64bit Windows. On Wed, Feb 15, 2023 at 1:53 PM

Re: [PATCH 7/7] hw/mem/cxl_type3: Add CXL RAS Error Injection Support.

2023-01-15 Thread Mike Maslenkin
On Fri, Jan 13, 2023 at 7:43 PM Jonathan Cameron via wrote: > > CXL uses PCI AER Internal errors to signal to the host that an error has > occurred. The host can then read more detailed status from the CXL RAS > capability. > > For uncorrectable errors: support multiple injection in one operation

Re: [PATCH] hw/riscv: virt: Remove size restriction for pflash

2022-11-06 Thread Mike Maslenkin
Hello Sunil! What about virt_machine_done() function? kernel_entry variable still points to the second flash started from virt_memmap[VIRT_FLASH].size / 2. On Sun, Nov 6, 2022 at 5:41 PM Sunil V L wrote: > > The pflash implementation currently assumes fixed size of the > backend storage. Due to