xref: /qemu/target/i386/kvm/kvm-cpu.h (revision 727385c4)
1 /*
2  * i386 KVM CPU type and functions
3  *
4  *  Copyright (c) 2003 Fabrice Bellard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KVM_CPU_H
21 #define KVM_CPU_H
22 
23 #ifdef CONFIG_KVM
24 /*
25  * Change the value of a KVM-specific default
26  *
27  * If value is NULL, no default will be set and the original
28  * value from the CPU model table will be kept.
29  *
30  * It is valid to call this function only for properties that
31  * are already present in the kvm_default_props table.
32  */
33 void x86_cpu_change_kvm_default(const char *prop, const char *value);
34 
35 #else /* !CONFIG_KVM */
36 
37 #define x86_cpu_change_kvm_default(a, b)
38 
39 #endif /* CONFIG_KVM */
40 
41 #endif /* KVM_CPU_H */
42