[PATCH v3 1/2] migration/vmstate: Introduce vmstate_save_state_with_err

2023-07-18 Thread Tejus GK
some dependencies for unit tests. Hence, this patch introduces a new function vmstate_save_state_with_err, which will eventually propagate the error message to savevm.c where a migrate_set_error call can be eventually done. Acked-by: Peter Xu Signed-off-by: Tejus GK --- include/migration/vmstate.h

[PATCH v3 2/2] migration: Update error description outside migration.c

2023-07-18 Thread Tejus GK
clients like libvirt never know the actual reason for the failure. This patch covers such cases outside of migration.c and updates the error description at the appropriate places. Acked-by: Peter Xu Signed-off-by: Tejus GK --- migration/savevm.c | 17 ++--- migration/vmstate.c | 7

[PATCH v3 0/2] Update error description outside migration.c

2023-07-18 Thread Tejus GK
Hi everyone, I'm sending out the rebased version of the v2 patch, please review. Thanks, Tejus Changelog: v3: - Rebase on master v2: - Rebase on master Tejus GK (2): migration/vmstate: Introduce vmstate_save_state_with_err migration: Update error description outside migrat

Re: [PULL 21/30] migration: Refactor repeated call of yank_unregister_instance

2023-07-27 Thread Tejus GK
On 22/06/23 10:25 pm, Juan Quintela wrote: From: Tejus GK In the function qmp_migrate(), yank_unregister_instance() gets called twice which isn't required. Hence, refactoring it so that it gets called during the local_error cleanup. Reviewed-by: Daniel P. Berrangé Reviewed-by: Juan Qui

Re: [PATCH v11 19/21] i386: Add cache topology info in CPUCacheInfo

2024-04-29 Thread Tejus GK
On 24 Apr 2024, at 9:19 PM, Zhao Liu wrote: @@ -2140,6 +2164,7 @@ static const CPUCaches epyc_milan_cache_info = { .lines_per_tag = 1, .self_init = 1, .no_invd_sharing = true, +.share_level = CPU_TOPO_LEVEL_CORE, }, .l1i_cache = &(CPUCacheInfo) {

Re: [RFC v2 1/1] migration: Update error description whenever migration fails

2023-05-09 Thread Tejus GK
On 08/05/23 10:19 pm, Thomas Huth wrote: >  Hi! > > On 08/05/2023 17.32, tejus.gk wrote: >> There are places in the code where the migration is marked failed with >> MIGRATION_STATUS_FAILED, but the failiure reason is never updated. Hence > > s/failiure/failure/ Ack > >> libvirt doesn't know

Re: [RFC v2 1/1] migration: Update error description whenever migration fails

2023-05-09 Thread Tejus GK
On 09/05/23 3:46 pm, Juan Quintela wrote: > "tejus.gk" wrote: >> There are places in the code where the migration is marked failed with >> MIGRATION_STATUS_FAILED, but the failiure reason is never updated. Hence >> libvirt doesn't know why the migration failed when it queries for it. >> >> Sign

[RFC v3 2/2] migration: Update error description whenever migration fails

2023-05-17 Thread Tejus GK
There are places outside of migration.c which eventually leads to a migration failure, but the failure reason is never updated. Hence libvirt doesn't know why the migration failed when it queries for it. Signed-off-by: Tejus GK --- migration/savevm.c | 13 ++--- migration/vmst

[RFC v3 1/2] migration: Update error description whenever migration fails

2023-05-17 Thread Tejus GK
There are places in migration.c where the migration is marked failed with MIGRATION_STATUS_FAILED, but the failure reason is never updated. Hence libvirt doesn't know why the migration failed when it queries for it. Signed-off-by: Tejus GK --- migration/migration.c

[RFC v3 0/2] migration: Update error description whenever migration fails

2023-05-17 Thread Tejus GK
test build failing, so I wanted to know the right way to approach this. regards, Tejus Tejus GK (2): migration: Update error description whenever migration fails migration: Update error description whenever migration fails migration/migration.c | 23 --- migration/savevm

Re: [RFC 1/1] migration: Update error description whenever migration fails

2023-05-05 Thread Tejus GK
On 04/05/23 1:46 pm, Daniel P. Berrangé wrote: > On Wed, May 03, 2023 at 08:31:16PM +, tejus.gk wrote: >> There are places in the code where the migration is marked failed with >> MIGRATION_STATUS_FAILED, but the failiure reason is never updated. Hence >> libvirt doesn't know why the migration

Re: [RFC v3 2/2] migration: Update error description whenever migration fails

2023-05-18 Thread Tejus GK
On 18/05/23 5:22 pm, Juan Quintela wrote: > Tejus GK wrote: >> There are places outside of migration.c which eventually leads to a >> migration failure, but the failure reason is never updated. Hence >> libvirt doesn't know why the migration failed when it queries f

[PATCH v4 2/2] migration: Refactor repeated call of yank_unregister_instance

2023-05-23 Thread Tejus GK
In the function qmp_migrate(), yank_unregister_instance() gets called twice which isn't required. Hence, refactoring it so that it gets called during the local_error cleanup. Reviewed-by: Daniel P. Berrangé Reviewed-by: Juan Quintela Signed-off-by: Tejus GK --- migration/migration.

[PATCH v4 1/2] migration: Update error description whenever migration fails

2023-05-23 Thread Tejus GK
There are places in migration.c where the migration is marked failed with MIGRATION_STATUS_FAILED, but the failure reason is never updated. Hence libvirt doesn't know why the migration failed when it queries for it. Reviewed-by: Daniel P. Berrangé Signed-off-by: Tejus GK --- migr

[PATCH v4 0/2] migration: Update error description whenever migration fails

2023-05-23 Thread Tejus GK
erent patchset. Regards, Tejus Tejus GK (2): migration: Update error description whenever migration fails migration: Refactor repeated call of yank_unregister_instance migration/migration.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) -- 2.22.3

[RFC 2/2] migration: Update error description outside migration.c

2023-05-26 Thread Tejus GK
clients like libvirt never know the actual reason for the failure. This patch covers such cases outside of migration.c and updates the error description at the appropriate places. Signed-off-by: Tejus GK --- migration/savevm.c | 17 ++--- migration/vmstate.c | 7 --- 2 files

[RFC 1/2] migration/vmstate: Introduce vmstate_save_state_with_err

2023-05-26 Thread Tejus GK
some dependencies for unit tests. Hence, this patch introduces a new function vmstate_save_state_with_err, which will eventually propagate the error message to savevm.c where a migrate_set_error call can be eventually done. Signed-off-by: Tejus GK --- include/migration/vmstate.h | 4 +++- migration/sav

[RFC 0/2] migration: Update error description outside migration.c

2023-05-26 Thread Tejus GK
patchset sent before which covered cases of such gaps in migration.c aswell. Previous patchset: https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg04463.html Regards, Tejus Tejus GK (2): migration/vmstate: Introduce vmstate_save_state_with_err migration: Update error description outside

[PATCH v5 2/2] migration: Update error description outside migration.c

2023-10-02 Thread Tejus GK
clients like libvirt never know the actual reason for the failure. This patch covers such cases outside of migration.c and updates the error description at the appropriate places. Acked-by: Peter Xu Signed-off-by: Tejus GK --- migration/savevm.c | 17 ++--- migration/vmstate.c | 7

[PATCH v5 0/2] migration: Update error description outside migration.c

2023-10-02 Thread Tejus GK
master v2: - Rebase on master Tejus GK (2): migration/vmstate: Introduce vmstate_save_state_with_err migration: Update error description outside migration.c include/migration/vmstate.h | 4 +++- migration/savevm.c | 19 +++ migration/vmstate.c | 19

[PATCH v5 1/2] migration/vmstate: Introduce vmstate_save_state_with_err

2023-10-02 Thread Tejus GK
some dependencies for unit tests. Hence, this patch introduces a new function vmstate_save_state_with_err, which will eventually propagate the error message to savevm.c where a migrate_set_error call can be eventually done. Acked-by: Peter Xu Signed-off-by: Tejus GK --- include/migration/vmstate.h

Re: [PATCH v5 2/2] migration: Update error description outside migration.c

2023-10-03 Thread Tejus GK
On 03/10/23 6:14 pm, Juan Quintela wrote: Tejus GK wrote: A few code paths exist in the source code,where a migration is marked as failed via MIGRATION_STATUS_FAILED, but the failure happens outside of migration.c In such cases, an error_report() call is made, however the current

Re: [PATCH v5 2/2] migration: Update error description outside migration.c

2023-10-04 Thread Tejus GK
On 04/10/23 1:53 pm, Juan Quintela wrote: Tejus GK wrote: On 03/10/23 6:14 pm, Juan Quintela wrote: Tejus GK wrote: A few code paths exist in the source code,where a migration is marked as failed via MIGRATION_STATUS_FAILED, but the failure happens outside of migration.c In such cases, an

[PATCH v4 1/2] migration/vmstate: Introduce vmstate_save_state_with_err

2023-08-20 Thread Tejus GK
some dependencies for unit tests. Hence, this patch introduces a new function vmstate_save_state_with_err, which will eventually propagate the error message to savevm.c where a migrate_set_error call can be eventually done. Acked-by: Peter Xu Signed-off-by: Tejus GK --- include/migration/vmstate.h

[PATCH v4 0/2] Update error description outside migration.c

2023-08-20 Thread Tejus GK
Hi everyone, This is the rebased version of the v3 patchset, please review, thanks. Regards Tejus Changelog: v4: - Rebase on master v3: - Rebase on master v2: - Rebase on master Tejus GK (2): migration/vmstate: Introduce vmstate_save_state_with_err migration: Update error description

[PATCH v4 2/2] migration: Update error description outside migration.c

2023-08-20 Thread Tejus GK
clients like libvirt never know the actual reason for the failure. This patch covers such cases outside of migration.c and updates the error description at the appropriate places. Acked-by: Peter Xu Signed-off-by: Tejus GK --- migration/savevm.c | 17 ++--- migration/vmstate.c | 7

Re: [PATCH v4 0/2] migration: Update error description whenever migration fails

2023-06-11 Thread Tejus GK
On 23/05/23 6:16 pm, Tejus GK wrote: > Hi everyone, > > Thank you for the reviews, this is the v4 patchset based on the reviews > received on the previous ones. > > Links to the previous patchsets: > v1: https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg0

Re: [RFC 0/2] migration: Update error description outside migration.c

2023-06-11 Thread Tejus GK
On 26/05/23 5:20 pm, Tejus GK wrote: > Hi everyone, > > This patchset aims to cover code paths in the source code where a > migration is marked as failed via MIGRATION_STATUS_FAILED, however the > failure exists outside of migration.c, and without a call for > migrate

[PATCH v2 0/2] Update error description outside migration.c

2023-06-21 Thread Tejus GK
Hi everyone, Thank you, Peter, for the review; I'm sending this patch out as a standard patch rather than an RFC patch. These are the following modifications in this version: v2: - Rebase on master Thanks, Tejus Tejus GK (2): migration/vmstate: Introduce vmstate_save_state_wit

[PATCH v2 1/2] migration/vmstate: Introduce vmstate_save_state_with_err

2023-06-21 Thread Tejus GK
some dependencies for unit tests. Hence, this patch introduces a new function vmstate_save_state_with_err, which will eventually propagate the error message to savevm.c where a migrate_set_error call can be eventually done. Acked-by: Peter Xu Signed-off-by: Tejus GK --- include/migration/vmstate.h

[PATCH v2 2/2] migration: Update error description outside migration.c

2023-06-21 Thread Tejus GK
clients like libvirt never know the actual reason for the failure. This patch covers such cases outside of migration.c and updates the error description at the appropriate places. Acked-by: Peter Xu Signed-off-by: Tejus GK --- migration/savevm.c | 17 ++--- migration/vmstate.c | 7

[PATCH v5 0/2] Update error description whenever migration fails

2023-06-21 Thread Tejus GK
Hi everyone, This is the v5 patchset which has been rebased on the current master. Requesting this to be queued for merge as this has already been reviewed. Regards, Tejus Tejus GK (2): migration: Update error description whenever migration fails migration: Refactor repeated call of

[PATCH v5 1/2] migration: Update error description whenever migration fails

2023-06-21 Thread Tejus GK
There are places in migration.c where the migration is marked failed with MIGRATION_STATUS_FAILED, but the failure reason is never updated. Hence libvirt doesn't know why the migration failed when it queries for it. Reviewed-by: Daniel P. Berrangé Signed-off-by: Tejus GK --- migr

[PATCH v5 2/2] migration: Refactor repeated call of yank_unregister_instance

2023-06-21 Thread Tejus GK
In the function qmp_migrate(), yank_unregister_instance() gets called twice which isn't required. Hence, refactoring it so that it gets called during the local_error cleanup. Reviewed-by: Daniel P. Berrangé Reviewed-by: Juan Quintela Signed-off-by: Tejus GK --- migration/migration.

Re: [PULL 20/30] migration: Update error description whenever migration fails

2023-06-22 Thread Tejus GK
On 22/06/23 7:43 am, Juan Quintela wrote: > From: Tejus GK > > There are places in migration.c where the migration is marked failed with > MIGRATION_STATUS_FAILED, but the failure reason is never updated. Hence > libvirt doesn't know why the migration failed when it queries f

pcie-root-port limits for q35?

2024-10-08 Thread Tejus GK
Hi, recently I was trying to play with the PCIe limits on the q35 machine type. I see that docs/pcie.txt mentions: The IO space is very limited, to 65536 byte-wide IO ports, and may even be fragmented by fixed IO ports owned by platform devices resulting in at most 10 PCI Express Root Ports or