From patchwork Tue Apr 16 16:12:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 237029 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B3F2A2C00B1 for ; Wed, 17 Apr 2013 02:12:52 +1000 (EST) Received: from localhost ([::1]:38593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US8V0-0006n6-Qb for incoming@patchwork.ozlabs.org; Tue, 16 Apr 2013 12:12:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US8UR-0006gf-I7 for qemu-devel@nongnu.org; Tue, 16 Apr 2013 12:12:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US8UM-0000zJ-H5 for qemu-devel@nongnu.org; Tue, 16 Apr 2013 12:12:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US8UM-0000zC-01 for qemu-devel@nongnu.org; Tue, 16 Apr 2013 12:12:10 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3GGC9qv024149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Apr 2013 12:12:09 -0400 Received: from localhost (vpn1-7-91.gru2.redhat.com [10.97.7.91]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3GGC8MK023796; Tue, 16 Apr 2013 12:12:08 -0400 From: Eduardo Habkost To: qemu-devel@nongnu.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 16 Apr 2013 13:12:02 -0300 Message-Id: <1366128724-31860-3-git-send-email-ehabkost@redhat.com> In-Reply-To: <1366128724-31860-1-git-send-email-ehabkost@redhat.com> References: <1366128724-31860-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Igor Mammedov Subject: [Qemu-devel] [PATCH qom-cpu 2/4] target-i386/kvm.c: Code formatting changes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add appropriate spaces around operators, and break line where it needs to be broken to allow feature-words array to be introduced without having too-long lines. Signed-off-by: Eduardo Habkost --- Changes v9: * 1-char alignment change: keep the opening parenthesis of both sides of the "==" operator starting at the same column --- target-i386/kvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 397afeb..e650900 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -610,7 +610,8 @@ int kvm_arch_init_vcpu(CPUState *cs) cpuid_data.cpuid.nent = cpuid_i; if (((env->cpuid_version >> 8)&0xF) >= 6 - && (env->cpuid_features&(CPUID_MCE|CPUID_MCA)) == (CPUID_MCE|CPUID_MCA) + && (env->cpuid_features & (CPUID_MCE|CPUID_MCA)) == + (CPUID_MCE|CPUID_MCA) && kvm_check_extension(cs->kvm_state, KVM_CAP_MCE) > 0) { uint64_t mcg_cap; int banks;