summary refs log tree commit diff stats
path: root/qga/commands.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2025-08-14 18:06:00 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-08-29 12:48:14 +0200
commit83bd8e65bc70cef03a207df315004f8b1301dc53 (patch)
treed1b181c352b1d87ebcbfed1b37985f338f48b880 /qga/commands.c
parent17e645c6f17999cd0306c4d18d6f6cb3db55756d (diff)
downloadfocaccia-qemu-83bd8e65bc70cef03a207df315004f8b1301dc53.tar.gz
focaccia-qemu-83bd8e65bc70cef03a207df315004f8b1301dc53.zip
tcg: move interrupt caching and single step masking closer to user
in cpu_handle_interrupt() the only place where cached interrupt_request
might have effect is when CPU_INTERRUPT_SSTEP_MASK applied and
cached interrupt_request handed over to cpu_exec_interrupt() and
need_replay_interrupt().

Simplify code by moving interrupt_request caching and CPU_INTERRUPT_SSTEP_MASK
masking into the block where it actually matters and drop reloading cached value
from CPUState:interrupt_request as the rest of the code directly uses
CPUState:interrupt_request.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Link: https://lore.kernel.org/r/20250814160600.2327672-9-imammedo@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qga/commands.c')
0 files changed, 0 insertions, 0 deletions