qemu-e2k/backends/tpm
Steve Sistare 0f1db069b6 cpus: check running not RUN_STATE_RUNNING
When a vm transitions from running to suspended, runstate notifiers are
not called, so the notifiers still think the vm is running.  Hence, when
we call vm_start to restore the suspended state, we call vm_state_notify
with running=1.  However, some notifiers check for RUN_STATE_RUNNING.
They must check the running boolean instead.

No functional change.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1704312341-66640-4-git-send-email-steven.sistare@oracle.com
Signed-off-by: Peter Xu <peterx@redhat.com>
2024-01-04 09:52:42 +08:00
..
Kconfig
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
tpm_backend.c thread-pool: avoid passing the pool parameter every time 2023-04-25 13:17:28 +02:00
tpm_emulator.c cpus: check running not RUN_STATE_RUNNING 2024-01-04 09:52:42 +08:00
tpm_int.h
tpm_ioctl.h misc/other: spelling fixes 2023-09-08 13:08:52 +03:00
tpm_passthrough.c qapi tpm: Elide redundant has_FOO in generated C 2022-12-14 20:05:07 +01:00
tpm_util.c tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR 2023-09-13 08:42:57 -04:00
trace-events tpm_emulator: Have swtpm relock storage upon migration fall-back 2022-09-13 10:27:17 -04:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00