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

whpx-accel-ops.h (929B)


      1/*
      2 * Accelerator CPUS Interface
      3 *
      4 * Copyright 2020 SUSE LLC
      5 *
      6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
      7 * See the COPYING file in the top-level directory.
      8 */
      9
     10#ifndef WHPX_CPUS_H
     11#define WHPX_CPUS_H
     12
     13#include "sysemu/cpus.h"
     14
     15int whpx_init_vcpu(CPUState *cpu);
     16int whpx_vcpu_exec(CPUState *cpu);
     17void whpx_destroy_vcpu(CPUState *cpu);
     18void whpx_vcpu_kick(CPUState *cpu);
     19
     20void whpx_cpu_synchronize_state(CPUState *cpu);
     21void whpx_cpu_synchronize_post_reset(CPUState *cpu);
     22void whpx_cpu_synchronize_post_init(CPUState *cpu);
     23void whpx_cpu_synchronize_pre_loadvm(CPUState *cpu);
     24
     25/* state subset only touched by the VCPU itself during runtime */
     26#define WHPX_SET_RUNTIME_STATE   1
     27/* state subset modified during VCPU reset */
     28#define WHPX_SET_RESET_STATE     2
     29/* full state set, modified during initialization or on vmload */
     30#define WHPX_SET_FULL_STATE      3
     31
     32#endif /* WHPX_CPUS_H */