Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp753588ybn; Wed, 25 Sep 2019 07:15:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgojvf7xxh/dBXwX7FY8dCZ7XN/Y5i5YU/G95YsEADsQbdFHAtZERnz/6dLgtQCGbf29Kc X-Received: by 2002:a50:f04e:: with SMTP id u14mr3113501edl.247.1569420939572; Wed, 25 Sep 2019 07:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569420939; cv=none; d=google.com; s=arc-20160816; b=Payxclb+vFylPRfdhjCxSx/waQADNoMJ+yuY8TXxwDGtcpOJE4MqfZ9wHlRTzs8hXr kt6lctOAhOmZUhNzZ4jTyKuQ6QUVmJ4jHMnacDcEquX8TPn0nObozzTuANuy5N4VjUhl pLIyPWy3VLaPIFcXuTf9T77Rr+eZsOB+GIH+rjw1iiNIdSicVegikv6jPs6Be3aPK05x D8YFrbyMQWRdt5aX7pIEUfb5IxtKD3jLgz282RVDKpL0FONaC3Ym/syy8DsGIAqREvgm xmh9uUm+TIBdhYnuuIapVXV5aS9LV7dquASDWTOzREKRRch6f0Isecoo/dB5X90AV6V6 lGHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=GE7K8CVGK2heIgLytQmrMIe2pNB3wHn4Xngpgn9CRvo=; b=NpDPBTr16gbgZ2GE2+u/rpH27DCPd5xk5FqoHAV+HsZi4g67/3AJGzTWKHbpJzuuph ggRCwTX7OlNe6NiOc/fPbJ1LTR4eFX4CRXVVBan3i9iK21YWkqST6HPw8jriUVh5TG4m D5YG8lubr1kySjJf4avbaf62/A8W7N7f3iRI1W7/OE+5sEnQnaB5PiNu7YJRp0RxW4jS WdTDblOjDFCAPowMHxIVL0/xO926S5rSqMjzjfCoYZlfg062abhc9oyMZN++HWuOV1/x 27eWzfJ/LobibtvU7zqMuWBd+SRFObVNEZT1fMfrbRWEA6GqlKGJ9Pn2vguHgn8aNG/X cbbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22si2859348ejz.218.2019.09.25.07.15.11; Wed, 25 Sep 2019 07:15:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437026AbfIWNdT (ORCPT + 99 others); Mon, 23 Sep 2019 09:33:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20927 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404581AbfIWNdS (ORCPT ); Mon, 23 Sep 2019 09:33:18 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8144A89AC0 for ; Mon, 23 Sep 2019 13:33:18 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id f11so4847462wrt.18 for ; Mon, 23 Sep 2019 06:33:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GE7K8CVGK2heIgLytQmrMIe2pNB3wHn4Xngpgn9CRvo=; b=uL96rh4H6p9N2yEcTkrZD25R3MBHNn0MfuvZu1iqJfORkc1sKeAW5cZaFasWsg7Cph PQINS/+wHWUvp+RZTP9mMlewdPqpgGa+xVavtu4Kz2CgKlaaTmqjM5VSXb4bZjIngcWo xFgce/SzqYkB5wjLPkMeuNJtIOjOb8QBSojc94WGFZ6edsxlRXtpQBEQ/7x6J0fAgKnR He7br63TCkWGi9VG0zgBN6V1SgOxjPEFSGXI2yDbUUXHX0bDHb/zggKvC5/nIpPwOK+h EpEe9C0DCWMCyXP4TRtsi9gVRb6m3lhYAhFQOVvmvCyZe4sBAk24FnAMaJr5XTTdnCqx CDeg== X-Gm-Message-State: APjAAAX6XUw44TKpe51j/CRMTfl2tWoFqp2eXIauxE8DmoTZGaGCrr/i IF+rq2M/YASUNKUefL1CEI1x35D3NrKEK/tNjqWy12rJ3inSU4L8b30wYgzzL0vBHSv+H/nZPdz xVRpa21xNsMe0aC7X1jaW3TRf X-Received: by 2002:a5d:65c3:: with SMTP id e3mr20529809wrw.211.1569245597060; Mon, 23 Sep 2019 06:33:17 -0700 (PDT) X-Received: by 2002:a5d:65c3:: with SMTP id e3mr20529781wrw.211.1569245596767; Mon, 23 Sep 2019 06:33:16 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:9520:22e6:6416:5c36? ([2001:b07:6468:f312:9520:22e6:6416:5c36]) by smtp.gmail.com with ESMTPSA id y186sm26462628wmd.26.2019.09.23.06.33.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Sep 2019 06:33:16 -0700 (PDT) Subject: Re: [PATCH v7 10/21] RISC-V: KVM: Handle MMIO exits for VCPU To: Anup Patel Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Radim K , Daniel Lezcano , Thomas Gleixner , Alexander Graf , Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , "kvm@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <20190904161245.111924-1-anup.patel@wdc.com> <20190904161245.111924-12-anup.patel@wdc.com> <8c44ac8a-3fdc-b9dd-1815-06e86cb73047@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <45fc3ee5-0f68-4e94-cfb3-0727ca52628f@redhat.com> Date: Mon, 23 Sep 2019 15:33:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/09/19 15:09, Anup Patel wrote: >>> +#ifndef CONFIG_RISCV_ISA_C >>> + "li %[tilen], 4\n" >>> +#else >>> + "li %[tilen], 2\n" >>> +#endif >> >> Can you use an assembler directive to force using a non-compressed >> format for ld and lw? This would get rid of tilen, which is costing 6 >> bytes (if I did the RVC math right) in order to save two. :) > > I tried looking for it but could not find any assembler directive > to selectively turn-off instruction compression. ".option norvc"? Paolo