Am 30.04.2014 18:48, schrieb Eduardo Habkost: > Merge filter_features_for_kvm() and kvm_check_features_against_host(). > > Both functions made exactly the same calculations, the only difference > was that filter_features_for_kvm() changed the bits on cpu->features[], > and kvm_check_features_against_host() did error reporting. > > Reviewed-by: Richard Henderson <r...@twiddle.net> > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Applying minor style tweak towards gtk-doc: diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 6302a5c..f022ef3 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1819,11 +1819,12 @@ CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp) return cpu_list; } -/* Filters CPU feature words based on host availability of each feature - * - * Returns 0 if all flags are supported by the host, non-zero otherwise. +/* + * Filters CPU feature words based on host availability of each feature. * * This function may be called only if KVM is enabled. + * + * Returns: 0 if all flags are supported by the host, non-zero otherwise. */ static int filter_features_for_kvm(X86CPU *cpu) { Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg