mirror of
https://github.com/qemu/qemu.git
synced 2025-08-05 19:09:28 +00:00

This is VMware documented functionallity that some guests rely on. Returns the BIOS UUID of the current virtual machine. Note that we also introduce a new compatability flag "x-cmds-v2" to make sure to expose new VMPort commands only to new machine-types. This flag will also be used by the following patches that will introduce additional VMPort commands. Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com> Signed-off-by: Liran Alon <liran.alon@oracle.com> Message-Id: <20200312165431.82118-10-liran.alon@oracle.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
27 lines
622 B
C
27 lines
622 B
C
#ifndef HW_VMPORT_H
|
|
#define HW_VMPORT_H
|
|
|
|
#include "hw/isa/isa.h"
|
|
|
|
#define TYPE_VMPORT "vmport"
|
|
typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address);
|
|
|
|
typedef enum {
|
|
VMPORT_CMD_GETVERSION = 10,
|
|
VMPORT_CMD_GETBIOSUUID = 19,
|
|
VMPORT_CMD_GETRAMSIZE = 20,
|
|
VMPORT_CMD_VMMOUSE_DATA = 39,
|
|
VMPORT_CMD_VMMOUSE_STATUS = 40,
|
|
VMPORT_CMD_VMMOUSE_COMMAND = 41,
|
|
VMPORT_ENTRIES
|
|
} VMPortCommand;
|
|
|
|
static inline void vmport_init(ISABus *bus)
|
|
{
|
|
isa_create_simple(bus, TYPE_VMPORT);
|
|
}
|
|
|
|
void vmport_register(VMPortCommand command, VMPortReadFunc *func, void *opaque);
|
|
|
|
#endif
|