KVM: x86: PIT: Preserve state of speaker port data bit
authorPaul Durrant <pdurrant@amazon.com>
Tue, 31 May 2022 12:44:21 +0000 (13:44 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 17:06:20 +0000 (13:06 -0400)
commitb172862241b4849985c3e0e86cfb05d61e4a841d
tree627ce3e699660f0e5d6121b3b3eb84f4bd833a19
parent3dbec44d9c94d8350a39326561ac40f969c63d16
KVM: x86: PIT: Preserve state of speaker port data bit

Currently the state of the speaker port (0x61) data bit (bit 1) is not
saved in the exported state (kvm_pit_state2) and hence is lost when
re-constructing guest state.

This patch removes the 'speaker_data_port' field from kvm_kpit_state and
instead tracks the state using a new KVM_PIT_FLAGS_SPEAKER_DATA_ON flag
defined in the API.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Message-Id: <20220531124421.1427-1-pdurrant@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h