diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-24 18:16:59 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-26 17:03:00 +0200 |
| commit | e620363687d468530e00db59ea00f08e6f67eabc (patch) | |
| tree | 0ca99496d6daaf8d065e9256a149e7f4d80acdd9 /include/hw/core/cpu.h | |
| parent | 79f1926b2dfa25ac47adbdc0748dc5f951b55ac5 (diff) | |
| download | focaccia-qemu-e620363687d468530e00db59ea00f08e6f67eabc.tar.gz focaccia-qemu-e620363687d468530e00db59ea00f08e6f67eabc.zip | |
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>
Diffstat (limited to 'include/hw/core/cpu.h')
| -rw-r--r-- | include/hw/core/cpu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 7f037b158e..cead8f01a6 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -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 |