xref: /qemu/target/i386/hvf/x86hvf.h (revision dbccd48df0954069c12e13883ee8b2929a57ac6a)
1c97d6d2cSSergio Andres Gomez Del Real /*
2c97d6d2cSSergio Andres Gomez Del Real  * Copyright (C) 2016 Veertu Inc,
3c97d6d2cSSergio Andres Gomez Del Real  * Copyright (C) 2017 Google Inc,
4c97d6d2cSSergio Andres Gomez Del Real  *
5c97d6d2cSSergio Andres Gomez Del Real  * This program is free software; you can redistribute it and/or
6996feed4SSergio Andres Gomez Del Real  * modify it under the terms of the GNU Lesser General Public
7996feed4SSergio Andres Gomez Del Real  * License as published by the Free Software Foundation; either
88af82b8eSChetan Pant  * version 2.1 of the License, or (at your option) any later version.
9c97d6d2cSSergio Andres Gomez Del Real  *
10c97d6d2cSSergio Andres Gomez Del Real  * This program is distributed in the hope that it will be useful,
11c97d6d2cSSergio Andres Gomez Del Real  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12996feed4SSergio Andres Gomez Del Real  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13996feed4SSergio Andres Gomez Del Real  * Lesser General Public License for more details.
14c97d6d2cSSergio Andres Gomez Del Real  *
15996feed4SSergio Andres Gomez Del Real  * You should have received a copy of the GNU Lesser General Public
16996feed4SSergio Andres Gomez Del Real  * License along with this program; if not, see <http://www.gnu.org/licenses/>.
17c97d6d2cSSergio Andres Gomez Del Real  */
18c97d6d2cSSergio Andres Gomez Del Real #ifndef X86HVF_H
19c97d6d2cSSergio Andres Gomez Del Real #define X86HVF_H
20c97d6d2cSSergio Andres Gomez Del Real #include "cpu.h"
21c97d6d2cSSergio Andres Gomez Del Real #include "x86_descr.h"
22c97d6d2cSSergio Andres Gomez Del Real 
23a7159244SPhilippe Mathieu-Daudé int hvf_process_events(CPUState *cs);
24a7159244SPhilippe Mathieu-Daudé bool hvf_inject_interrupts(CPUState *cs);
25a7159244SPhilippe Mathieu-Daudé void hvf_set_segment(CPUState *cs, struct vmx_segment *vmx_seg,
26c97d6d2cSSergio Andres Gomez Del Real                      SegmentCache *qseg, bool is_tr);
27c97d6d2cSSergio Andres Gomez Del Real void hvf_get_segment(SegmentCache *qseg, struct vmx_segment *vmx_seg);
28a7159244SPhilippe Mathieu-Daudé void hvf_put_xsave(CPUState *cs);
29a7159244SPhilippe Mathieu-Daudé void hvf_put_msrs(CPUState *cs);
30a7159244SPhilippe Mathieu-Daudé void hvf_get_xsave(CPUState *cs);
31a7159244SPhilippe Mathieu-Daudé void hvf_get_msrs(CPUState *cs);
32a7159244SPhilippe Mathieu-Daudé void vmx_clear_int_window_exiting(CPUState *cs);
33a7159244SPhilippe Mathieu-Daudé void vmx_update_tpr(CPUState *cs);
34*dbccd48dSWei Liu 
35*dbccd48dSWei Liu void hvf_load_regs(CPUState *cpu);
36*dbccd48dSWei Liu void hvf_store_regs(CPUState *cpu);
37c97d6d2cSSergio Andres Gomez Del Real #endif
38