From patchwork Thu Aug 30 07:36:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 1386731 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 4B104DF215 for ; Thu, 30 Aug 2012 07:36:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751813Ab2H3Hgp (ORCPT ); Thu, 30 Aug 2012 03:36:45 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:53438 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751664Ab2H3Hgn (ORCPT ); Thu, 30 Aug 2012 03:36:43 -0400 Received: by mail-wi0-f172.google.com with SMTP id r5so7463006wic.1 for ; Thu, 30 Aug 2012 00:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=VqBzQJorwpTaDngVzyZAdwIp7SWoPvtcqCA+y7nL3rs=; b=J0ll7CpuOeVBGdoHfvfOVsLAZ2E9OUpXcBXHfK0+t7A1kPqxIyRTyNkHOBPwMso0Dh BpD3s2gN5z2KVlBLuFJXYsP6AsoQZjjdwu0epFhxVZp8bPqR1AtVL0W468m2veQGOgal iy7X+TiuZYYuwUvqKX2dsiKndaLCkK5XqyMwWUEGC0DkU0DzewQI1UGQzxvgvC60FsAw Bd4svd/6RKLWS3COA2AMWDAlPRkPiF4dVoWRBPEgQ8Zp5ckfFnCrK/o4YQ1T+HIAedCU yxL54CoQunPXjcHPZDJFL6WSbovzJcusRP9E2psfeac2i/qFptBaprSw3xS14jPcdXVg 3+jw== Received: by 10.180.97.135 with SMTP id ea7mr45960241wib.11.1346312201599; Thu, 30 Aug 2012 00:36:41 -0700 (PDT) Received: from lappy.capriciverd.com (20.Red-80-59-140.staticIP.rima-tde.net. [80.59.140.20]) by mx.google.com with ESMTPS id fr4sm2847342wib.8.2012.08.30.00.36.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Aug 2012 00:36:40 -0700 (PDT) From: Sasha Levin To: penberg@kernel.org Cc: asias.hejun@gmail.com, mingo@elte.hu, gorcunov@openvz.org, kvm@vger.kernel.org, Sasha Levin Subject: [PATCH 5/7] kvm tools: enable LTO Date: Thu, 30 Aug 2012 09:36:41 +0200 Message-Id: <1346312203-29456-5-git-send-email-levinsasha928@gmail.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1346312203-29456-1-git-send-email-levinsasha928@gmail.com> References: <1346312203-29456-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Build with -flto set, which should enable link-time-optimizations. I'm not sure if it provides a significant performance increase, but it's probably just worth it for catching issues which it may cause. Signed-off-by: Sasha Levin --- tools/kvm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 8aa0125..0e2fa66 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -243,7 +243,7 @@ DEFINES += -DKVMTOOLS_VERSION='"$(KVMTOOLS_VERSION)"' DEFINES += -DBUILD_ARCH='"$(ARCH)"' KVM_INCLUDE := include -CFLAGS += $(CPPFLAGS) $(DEFINES) -I$(KVM_INCLUDE) -I$(ARCH_INCLUDE) -I$(KINCL_PATH)/include -I$(KINCL_PATH)/arch/$(ARCH)/include/ -O2 -fno-strict-aliasing -g +CFLAGS += $(CPPFLAGS) $(DEFINES) -I$(KVM_INCLUDE) -I$(ARCH_INCLUDE) -I$(KINCL_PATH)/include -I$(KINCL_PATH)/arch/$(ARCH)/include/ -O2 -fno-strict-aliasing -g -flto WARNINGS += -Wall WARNINGS += -Wcast-align