aboutsummaryrefslogtreecommitdiff
path: root/include/hw/i386
diff options
context:
space:
mode:
authorJoelle van Dyne <j@getutm.app>2022-02-27 13:06:55 -0800
committerMichael S. Tsirkin <mst@redhat.com>2022-03-06 05:08:23 -0500
commit4ccd5fe22feb95137d325f422016a6473541fe9f (patch)
tree98f401c1065b778ceb7863047683c664b19dca4e /include/hw/i386
parent6b0969f1ec825984cd74619f0730be421b0c46fb (diff)
downloadqemu-4ccd5fe22feb95137d325f422016a6473541fe9f.zip
qemu-4ccd5fe22feb95137d325f422016a6473541fe9f.tar.gz
qemu-4ccd5fe22feb95137d325f422016a6473541fe9f.tar.bz2
pc: add option to disable PS/2 mouse/keyboard
On some older software like Windows 7 installer, having both a PS/2 mouse and USB mouse results in only one device working property (which might be a different device each boot). While the workaround to not use a USB mouse with such software is valid, it creates an inconsistent experience if the user wishes to always use a USB mouse. This introduces a new machine property to inhibit the creation of the i8042 PS/2 controller. Signed-off-by: Joelle van Dyne <j@getutm.app> Message-Id: <20220227210655.45592-1-j@getutm.app> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/i386')
-rw-r--r--include/hw/i386/pc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 9c9f4ac..1a27de9 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -48,6 +48,7 @@ typedef struct PCMachineState {
bool sata_enabled;
bool pit_enabled;
bool hpet_enabled;
+ bool i8042_enabled;
bool default_bus_bypass_iommu;
uint64_t max_fw_size;
@@ -64,6 +65,7 @@ typedef struct PCMachineState {
#define PC_MACHINE_SMBUS "smbus"
#define PC_MACHINE_SATA "sata"
#define PC_MACHINE_PIT "pit"
+#define PC_MACHINE_I8042 "i8042"
#define PC_MACHINE_MAX_FW_SIZE "max-fw-size"
#define PC_MACHINE_SMBIOS_EP "smbios-entry-point-type"