Revision e4ab0d6b target-i386/cpu.c
b/target-i386/cpu.c | ||
---|---|---|
758 | 758 |
}, |
759 | 759 |
}; |
760 | 760 |
|
761 |
#ifdef CONFIG_KVM |
|
761 | 762 |
static int cpu_x86_fill_model_id(char *str) |
762 | 763 |
{ |
763 | 764 |
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; |
... | ... | |
772 | 773 |
} |
773 | 774 |
return 0; |
774 | 775 |
} |
776 |
#endif |
|
775 | 777 |
|
776 | 778 |
/* Fill a x86_def_t struct with information about the host CPU, and |
777 | 779 |
* the CPU features supported by the host hardware + host kernel |
... | ... | |
780 | 782 |
*/ |
781 | 783 |
static void kvm_cpu_fill_host(x86_def_t *x86_cpu_def) |
782 | 784 |
{ |
785 |
#ifdef CONFIG_KVM |
|
783 | 786 |
KVMState *s = kvm_state; |
784 | 787 |
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; |
785 | 788 |
|
... | ... | |
838 | 841 |
* unsupported ones later. |
839 | 842 |
*/ |
840 | 843 |
x86_cpu_def->svm_features = -1; |
844 |
#endif /* CONFIG_KVM */ |
|
841 | 845 |
} |
842 | 846 |
|
843 | 847 |
static int unavailable_host_feature(struct model_features_t *f, uint32_t mask) |
Also available in: Unified diff