Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2244CC433ED for ; Tue, 6 Apr 2021 17:00:04 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D48AB613B3 for ; Tue, 6 Apr 2021 17:00:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D48AB613B3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.106128.202940 (Exim 4.92) (envelope-from ) id 1lTp3U-0005sK-Sa; Tue, 06 Apr 2021 16:59:56 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 106128.202940; Tue, 06 Apr 2021 16:59:56 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lTp3U-0005sD-PZ; Tue, 06 Apr 2021 16:59:56 +0000 Received: by outflank-mailman (input) for mailman id 106128; Tue, 06 Apr 2021 16:59:55 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lTp3T-0005s2-GU for xen-devel@lists.xenproject.org; Tue, 06 Apr 2021 16:59:55 +0000 Received: from mail-wr1-f43.google.com (unknown [209.85.221.43]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 002609e3-bdf5-4fad-a514-053830cefb52; Tue, 06 Apr 2021 16:59:54 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id b9so7105489wrs.1 for ; Tue, 06 Apr 2021 09:59:54 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id u9sm3567374wmc.38.2021.04.06.09.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 09:59:53 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 002609e3-bdf5-4fad-a514-053830cefb52 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=23E2JxVM2Db+lzpj2F19BRqlatm868CCsIQugpAoPNs=; b=VLc5bK6WinPUhsun42ziGkJ8UnDUhDkHixVT+QAXmNsjFTiAndUrrdjafc5qCqCtM7 VBriseGI6Y0w1UjVfcIwNNyhpsIRFh1nIx3/uU4fQtH6bzGg6zVMq8bFpfBtg57a+NO2 3hcoq9IYxJBtuE1sXhSXiVepExfMnuhgdFFATIDIV1RtD+lC4cGWZPDNULS7Fuz017Vq WckfdNBz3eTkTPcftrDOUd9SqQOtSwsAmQ5p26ve69SmhMn0UtWx6NzA61f6ZyhiT1vN aI+DbHoK7gzK/udiLPNlkJY3oeWfQ5Bpve1+bQksNmDiniOYJdNhWUA9l/srdgC1tdPj VgUg== X-Gm-Message-State: AOAM5304Y002Aalpt2mC6w/tJfW25PDnU4QaHcoFcuQ+uyynruMdY2tM oJNV/hnjH/kVjNUNgjO9p60= X-Google-Smtp-Source: ABdhPJwfsCFEuJt0HiZL72nSFIe192a6hiTiKdauCl7/4tTB1GlFWsrhg2TSePqXL90tchm3V1l/qg== X-Received: by 2002:a5d:6242:: with SMTP id m2mr35907371wrv.384.1617728394075; Tue, 06 Apr 2021 09:59:54 -0700 (PDT) Date: Tue, 6 Apr 2021 16:59:52 +0000 From: Wei Liu To: Jan Beulich Cc: "xen-devel@lists.xenproject.org" , Andrew Cooper , George Dunlap , Ian Jackson , Julien Grall , Stefano Stabellini , Wei Liu , Roger Pau =?utf-8?B?TW9ubsOp?= Subject: Re: [PATCH v2 2/3] x86: slim down hypercall handling when !PV32 Message-ID: <20210406165952.lk6qqyb3ert3bsov@liuwe-devbox-debian-v2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Apr 06, 2021 at 04:01:41PM +0200, Jan Beulich wrote: > In such a build various of the compat handlers aren't needed. Don't > reference them from the hypercall table, and compile out those which > aren't needed for HVM. Also compile out switch_compat(), which has no > purpose in such a build. > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu