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

sev.h (780B)


      1/*
      2 * QEMU Secure Encrypted Virutualization (SEV) support
      3 *
      4 * Copyright: Advanced Micro Devices, 2016-2018
      5 *
      6 * Authors:
      7 *  Brijesh Singh <brijesh.singh@amd.com>
      8 *
      9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
     10 * See the COPYING file in the top-level directory.
     11 *
     12 */
     13
     14#ifndef QEMU_SEV_H
     15#define QEMU_SEV_H
     16
     17#include "sysemu/kvm.h"
     18
     19bool sev_enabled(void);
     20int sev_kvm_init(ConfidentialGuestSupport *cgs, Error **errp);
     21int sev_encrypt_flash(hwaddr gpa, uint8_t *ptr, uint64_t len, Error **errp);
     22int sev_inject_launch_secret(const char *hdr, const char *secret,
     23                             uint64_t gpa, Error **errp);
     24
     25int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size);
     26void sev_es_set_reset_vector(CPUState *cpu);
     27
     28#endif