mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 06:53:43 +08:00
20c8fa2ec7
Commit acb9f95a
removed boundary checks for ID and VCPU ID. After that,
the max definitions of that boundaries are not required anymore. This
commit is only a code cleanup.
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Message-Id: <20200323200538.202164-1-jcfaracco@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
47 lines
909 B
C
47 lines
909 B
C
/*
|
|
* QEMU Hypervisor.framework (HVF) support
|
|
*
|
|
* Copyright 2017 Google Inc
|
|
*
|
|
* Adapted from target-i386/hax-i386.h:
|
|
* Copyright (c) 2011 Intel Corporation
|
|
* Written by:
|
|
* Jiang Yunhong<yunhong.jiang@intel.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef HVF_I386_H
|
|
#define HVF_I386_H
|
|
|
|
#include "sysemu/hvf.h"
|
|
#include "cpu.h"
|
|
#include "x86.h"
|
|
|
|
#define HVF_MAX_VCPU 0x10
|
|
|
|
extern struct hvf_state hvf_global;
|
|
|
|
struct hvf_vm {
|
|
int id;
|
|
struct hvf_vcpu_state *vcpus[HVF_MAX_VCPU];
|
|
};
|
|
|
|
struct hvf_state {
|
|
uint32_t version;
|
|
struct hvf_vm *vm;
|
|
uint64_t mem_quota;
|
|
};
|
|
|
|
#ifdef NEED_CPU_H
|
|
/* Functions exported to host specific mode */
|
|
|
|
/* Host specific functions */
|
|
int hvf_inject_interrupt(CPUArchState *env, int vector);
|
|
int hvf_vcpu_run(struct hvf_vcpu_state *vcpu);
|
|
#endif
|
|
|
|
#endif
|