cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

vmport.h (696B)


      1#ifndef HW_VMPORT_H
      2#define HW_VMPORT_H
      3
      4#include "hw/isa/isa.h"
      5
      6#define TYPE_VMPORT "vmport"
      7typedef uint32_t VMPortReadFunc(void *opaque, uint32_t address);
      8
      9typedef enum {
     10    VMPORT_CMD_GETVERSION       = 10,
     11    VMPORT_CMD_GETBIOSUUID      = 19,
     12    VMPORT_CMD_GETRAMSIZE       = 20,
     13    VMPORT_CMD_VMMOUSE_DATA     = 39,
     14    VMPORT_CMD_VMMOUSE_STATUS   = 40,
     15    VMPORT_CMD_VMMOUSE_COMMAND  = 41,
     16    VMPORT_CMD_GETHZ            = 45,
     17    VMPORT_CMD_GET_VCPU_INFO    = 68,
     18    VMPORT_ENTRIES
     19} VMPortCommand;
     20
     21static inline void vmport_init(ISABus *bus)
     22{
     23    isa_create_simple(bus, TYPE_VMPORT);
     24}
     25
     26void vmport_register(VMPortCommand command, VMPortReadFunc *func, void *opaque);
     27
     28#endif