2
* emulate.h: SVM instruction emulation bits.
3
* Copyright (c) 2005, AMD Corporation.
4
* Copyright (c) 2004, Intel Corporation.
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms and conditions of the GNU General Public License,
8
* version 2, as published by the Free Software Foundation.
10
* This program is distributed in the hope it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
* You should have received a copy of the GNU General Public License along with
16
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17
* Place - Suite 330, Boston, MA 02111-1307 USA.
20
#ifndef __ASM_X86_HVM_SVM_EMULATE_H__
21
#define __ASM_X86_HVM_SVM_EMULATE_H__
23
/* Enumerate some standard instructions that we support */
24
enum instruction_index {
34
INSTR_MAX_COUNT /* Must be last - Number of instructions supported */
37
int __get_instruction_length_from_list(
38
struct vcpu *v, enum instruction_index *list, unsigned int list_count);
40
static inline int __get_instruction_length(
41
struct vcpu *v, enum instruction_index instr)
43
return __get_instruction_length_from_list(v, &instr, 1);
46
#endif /* __ASM_X86_HVM_SVM_EMULATE_H__ */
54
* indent-tabs-mode: nil