]> git.proxmox.com Git - mirror_qemu.git/commit - dump/win_dump.c
dump/win_dump: limit number of processed PRCBs
authorViktor Prutyanov <viktor.prutyanov@redhat.com>
Wed, 19 Oct 2022 23:59:48 +0000 (02:59 +0300)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 26 Oct 2022 08:55:00 +0000 (12:55 +0400)
commite38c24cb580735883769558801d9e2f2ba9f04c1
tree98ef6afdf9f58a0ab936ed3da73e48ad21cb2461
parent113d8f4e95cf0450bea421263de6ec016c779ad0
dump/win_dump: limit number of processed PRCBs

When number of CPUs utilized by guest Windows is less than defined in
QEMU (i.e., desktop versions of Windows severely limits number of CPU
sockets), patch_and_save_context routine accesses non-existent PRCB and
fails. So, limit number of processed PRCBs by NumberProcessors taken
from guest Windows driver.

Signed-off-by: Viktor Prutyanov <viktor.prutyanov@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221019235948.656411-1-viktor.prutyanov@redhat.com>
dump/win_dump.c