From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 D7E5AC388F2 for ; Mon, 2 Nov 2020 17:20:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4789D20691 for ; Mon, 2 Nov 2020 17:20:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="qucR1wv8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727724AbgKBRUD (ORCPT ); Mon, 2 Nov 2020 12:20:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727185AbgKBRUD (ORCPT ); Mon, 2 Nov 2020 12:20:03 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64636C0617A6 for ; Mon, 2 Nov 2020 09:20:02 -0800 (PST) Received: from zn.tnic (p200300ec2f086a00fa513bf50e741c79.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:6a00:fa51:3bf5:e74:1c79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9A57F1EC036C; Mon, 2 Nov 2020 18:20:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1604337600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uRfIFKTqbFjQdtD3KD5XPQvsfyUsfYoM6HmZVK91m0I=; b=qucR1wv8OHrPn75plR8Cl7p9nyJ253cjCTV/ClGU7BoOSTNNfIjQGGtXSqR8NuKs/kyTb3 IAtUu/5evsMK12ofCkFO9NIDvDWOOQqzmwnrQJR6tOQDUNKEzbRiouW3AkDi1J2X/iNV8Z JQPYVcJzmDeiXHlTjHr/kJtcHauHwy4= Date: Mon, 2 Nov 2020 18:19:50 +0100 From: Borislav Petkov To: Segher Boessenkool Cc: shuo.a.liu@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, Greg Kroah-Hartman , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Sean Christopherson , Yu Wang , Reinette Chatre , Yakui Zhao , Dave Hansen , Dan Williams , Fengwei Yin , Zhi Wang , Zhenyu Wang , Arvind Sankar , Peter Zijlstra , Nick Desaulniers Subject: Re: [PATCH v5 04/17] x86/acrn: Introduce hypercall interfaces Message-ID: <20201102171950.GF15392@zn.tnic> References: <20201019061803.13298-1-shuo.a.liu@intel.com> <20201019061803.13298-5-shuo.a.liu@intel.com> <20201102145657.GD15392@zn.tnic> <20201102160901.GU2672@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201102160901.GU2672@gate.crashing.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 10:09:01AM -0600, Segher Boessenkool wrote: > I think that will work for x86_64. But it won't matter much, most of > the time you give an immediate number. Yeah, my question is more along the lines of "is this constraint somehow special, i.e., 'ir' (and not 'm') or can it be whatever, i.e., 'g'"? > It is a tiny bit neater of course (if anyone still remembers what "g" > is, you cannot use it much these days). Oh I always remember what it is because it is right there in the docs: "6.47.3.1 Simple Constraints ... ā€˜g’ Any register, memory or immediate integer operand is allowed, except for registers that are not general registers." ;-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette