Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp862147rwb; Thu, 4 Aug 2022 12:19:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4UST+VHqUtimwWXOGUVNFYwuB+2yo5xZ2Anf8l5XKgY5NKcZmOZnzNW0hk1v9uj00LqYYO X-Received: by 2002:a63:4642:0:b0:41b:d353:c5c7 with SMTP id v2-20020a634642000000b0041bd353c5c7mr2702698pgk.568.1659640759307; Thu, 04 Aug 2022 12:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659640759; cv=none; d=google.com; s=arc-20160816; b=Uo6Gebg8zLnGu4Lrx0s0l77/GmTapziS08BQGxe5r6o6sOKPJTSHe7Ib4s16viRymc vUq9BmZsdJCPMqxdpauZP21rzz62bAKgloMZoYyHCQWdqEzQf5HaK8QxWdzDA0026B1I N/OJ4/lzaWgkZbWADgSq2GMlOdr7+JhcQXFtCB/+4xJKtVVg5svt/WLSfKadXt/0BVSq 6RuvNYkyYLNBEuHkUxecr7ppx7DEjYbzCRPwtpdA/DmtFz9Iuk2aRJsMgfVt3TS1NVHJ 5LvrhHm1Hqetd5oy3kiuOG2pfnTloTTyYs+43C6TwkxseWFH1+7P2iy9lNgihyrVzNED CB9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IHstycJnchz7CYE1s5IELb55bzApx2TXAD+AYK4D9Qk=; b=ccWb7LExR40lFfO//R9JilUcvNTe/8JH5R4jD1cyc3JA7m/Qw47UO9k4VvgkYDtlWd lSsRX9IKgNT0Yg55wTak3qiOXZsndA4xP5AzbmPHgoFuoqd3UDvEXFinD/ke85ard1D1 v2NK0af8cQKii3maZkENXha6VRM2Tx85mb6CLm8aY088hd3NA2wXwYH75xhtwGF2FgTT XYkez9edNaJ7nAEX9VL0hAm5fDccV8q0Z8JnMjpHp6qRTDRoYgn2RHbjhhPB13L9zP3P NCDFXVy/nhD0xJ9Y1rhDWIaHD3yDYeXEnvRs7VpQIfaRrDSL2iXC7Rq31XheBORWfKmN a6lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ebEnk0Cn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b0041a5a80428esi525949pgb.750.2022.08.04.12.19.04; Thu, 04 Aug 2022 12:19:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ebEnk0Cn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238723AbiHDTEY (ORCPT + 99 others); Thu, 4 Aug 2022 15:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232290AbiHDTEV (ORCPT ); Thu, 4 Aug 2022 15:04:21 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52D5B6D56D for ; Thu, 4 Aug 2022 12:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659639860; x=1691175860; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Zeb314LA7OHiqwgRSF20NPO4aqmgQgIU8MCpZ86Aap4=; b=ebEnk0CnjVLeS6AvNn6u0YCpN4GtqebTv6I1ocZSlrnc2g+jLOVs0x9Y M7V1YPSCySseIaHkLpDWvEbdCHiJMDYfQ1kBtfqyP1oeKyLN5XeBhs193 OXDSDW61wiSqTR+jI87bKJ7V+ucayXftMDOjhAxgF8E/ZgGMyh6YgIjyI x3tFqcqoWB2mf0XXaC+//7LPwDpDC8gectBVK4nxAWWvvksONPGNliceR JXMLMjZs0B/PHc9cKwn8jBwfzL7ewQyzGlGaxBvO+0TDCywS1OTYLIzOR Z+pHHe7XJW1pE8ZZ431OYHcT3qKDSKC7Pdb/QNcUDa29/39h6J+w+rLDT w==; X-IronPort-AV: E=McAfee;i="6400,9594,10429"; a="270404358" X-IronPort-AV: E=Sophos;i="5.93,216,1654585200"; d="scan'208";a="270404358" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 12:03:57 -0700 X-IronPort-AV: E=Sophos;i="5.93,216,1654585200"; d="scan'208";a="631709547" Received: from lnavery-mobl1.amr.corp.intel.com (HELO [10.255.228.146]) ([10.255.228.146]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 12:03:56 -0700 Message-ID: <6c516a7c-ac97-e0b1-b056-06a17d1b7420@intel.com> Date: Thu, 4 Aug 2022 12:03:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] x86/acrn: Improve ACRN hypercalls Content-Language: en-US To: Uros Bizjak Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" References: <20220804180358.32944-1-ubizjak@gmail.com> <91ccae0b-6135-6163-f59b-4e99624090a5@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/4/22 11:56, Uros Bizjak wrote: > The %r8 is not preserved across function calls, so your statement > above is correct. But as long as there is no function call *between* > the variable definition and the assembly, the approach with the local > register variable works without any problems. It is even something GCC > itself has used in its library for years. I'm glad it's workout out for GCC. But, the kernel is not GCC. I specifically asked for the ACRN code to be the way that it is today and your argument is not making me reconsider it in the slightest. So, thanks for the patch, but I don't think we should apply it.