mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
accel/hvf: Use accel-specific per-vcpu @dirty field
HVF has a specific use of the CPUState::vcpu_dirty field (CPUState::vcpu_dirty is not used by common code). To make this field accel-specific, add and use a new @dirty variable in the AccelCPUState structure. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240424174506.326-4-philmd@linaro.org>
This commit is contained in:
parent
79f1926b2d
commit
e620363687
6 changed files with 12 additions and 12 deletions
|
@ -525,6 +525,7 @@ struct CPUState {
|
|||
uint32_t kvm_fetch_index;
|
||||
uint64_t dirty_pages;
|
||||
int kvm_vcpu_stats_fd;
|
||||
bool vcpu_dirty;
|
||||
|
||||
/* Use by accel-block: CPU is executing an ioctl() */
|
||||
QemuLockCnt in_ioctl_lock;
|
||||
|
@ -546,8 +547,6 @@ struct CPUState {
|
|||
int32_t exception_index;
|
||||
|
||||
AccelCPUState *accel;
|
||||
/* shared by kvm and hvf */
|
||||
bool vcpu_dirty;
|
||||
|
||||
/* Used to keep track of an outstanding cpu throttle thread for migration
|
||||
* autoconverge
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue