From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:e212:0:0:0:0:0 with SMTP id z18csp2117853lfg; Mon, 23 Aug 2021 11:43:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAbuRiO1Ui73vsUbp2Wvu7sPvVk5BxohywOJo2TK/OAk+HcAIiEWYohfPzaLiAmYedej/m X-Received: by 2002:a02:93c1:: with SMTP id z59mr30895142jah.2.1629744220174; Mon, 23 Aug 2021 11:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629744220; cv=none; d=google.com; s=arc-20160816; b=KZ4qwzOISX57VfL8s6K0B8+iRNqEonXXKpZZsf12kILZhFlbFJY/MF82IThNBO0mEa 3LTFZdNsn7zlYLmkKs0zrXtyL6HSvnyNOfaI3ATbfPFc0kzJhsqnCHWjsNY9OJtQ/FqM 5yVvLyREfDN5TSdEoZ3llKMS49hwveFLpJ4HxiISZaGIzf1JDlSzunn29Wy3mAI1hkq2 9OVIPU0pW0Px3M4rkkizTA533qPPhhdF9eGmFsrx7RLxTOpvfxe4QtggY7dyuECKzRWk RS2U/9UGyfb0icVfIAYQDAaYB+lgpVSWF+slmXty2b9jFtVioabCm3/gL6lz+QbRm9QM QUig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-disposition:in-reply-to:mime-version:references:message-id :subject:to:from:date:dkim-signature; bh=JLy+BP5QfRHQcgnmyyQgp0hJb6D1s0VN6etpqjPgKaQ=; b=VTF1yf3e81AbUZji5x+g5GpNimC8IEv7CZ4GKfHElUpnT8taPvsRmYA9z7P80aTDkx PPTz+e99+0v2KYwrtNrH7wLkmnP/rYu15z/wXuH5nhHC+2ZzXF3bIjH6clZydfttKwmR DeZyH7SeX5nrlozCQtdQElquM3v6tYiS/qmv+DJGGA1vngRydEpC3vaJyYi7oqwYEZsv 51lmmiMhQ+kWLou5c1EBumLyilsdpKWV5hZCfvPcr8ilPPHwBaCuC46JF1PbAhdH8LZ0 p5GV8pQjWhOaPghy7KnZkPdP1FvCJEwe9UEFjP9xFokAr/475cGXjxpwIt6VWrsGFqon w9xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=GfNUPGnf; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q7si17323767iow.71.2021.08.23.11.43.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Aug 2021 11:43:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=GfNUPGnf; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:35838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIEv5-0000Sg-IJ for alex.bennee@linaro.org; Mon, 23 Aug 2021 14:43:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIEtP-0007RA-M7 for qemu-devel@nongnu.org; Mon, 23 Aug 2021 14:41:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIEtL-0003dr-9E for qemu-devel@nongnu.org; Mon, 23 Aug 2021 14:41:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629744109; 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=JLy+BP5QfRHQcgnmyyQgp0hJb6D1s0VN6etpqjPgKaQ=; b=GfNUPGnfu2IrMf8DUguKll5zvaEF/Rz2pbamzstQFbtidmqWmcqj+WeLDIt953etQTlr+n ldfwNO6T9jiY8/MLH3wRaKChaixotY1E5GUdaToQ40CYU2vVRtuumDsLSI9fFWijLNVtRF X3daoPhTJ7JwYLCk820hQJBRCY0lkWA= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-455-95rxzyubO1mRc4JUOP1bgQ-1; Mon, 23 Aug 2021 14:41:48 -0400 X-MC-Unique: 95rxzyubO1mRc4JUOP1bgQ-1 Received: by mail-qt1-f198.google.com with SMTP id x11-20020ac86b4b000000b00299d7592d31so9115612qts.0 for ; Mon, 23 Aug 2021 11:41:48 -0700 (PDT) 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:content-transfer-encoding :in-reply-to; bh=JLy+BP5QfRHQcgnmyyQgp0hJb6D1s0VN6etpqjPgKaQ=; b=MGGfnftR7ZXrzmYftXKhO2lKYXSXm65ZBr0t5ZBkhywjxVNE8y0w21KLMyntIRq4PQ eLI0iyqhHpOnTw53mtM8IiL82msKgWGtZKaj/113JG0bqiUAshxXvHGQLaZ3PbvwYxMs 17THdMf1jMIzGehjE8cdwRFYr9n1uOZVdeE1rDmQayN7jLSbwmKV22IgBzOpF/qhJF1l /zO5Cx/rGeL8zII2+XQN+82ypHaLozUKp5yOOZtvN7WNsYA/mKLG4Yvq/l0Fbaor0vB/ pg8qasjVnVIy8LQgRcqfg1WvSXOF6Sc1d9sT3kPDDuXNwY4XwPSjcTbHrQtqQOKdSo3a hPww== X-Gm-Message-State: AOAM530GDo0SF7wIwiVBPYZUF0o1/jae4Zz9vQkLDzqcJXSzJZc1XOQT OQ1skq+zu6jtcbssEbTrAwQQtdEDYBnr8lwZM11VCnsangcgMdFG8MumWpBLbQ+s8ioOLutHt7H DelDrGqbAAbur4n4= X-Received: by 2002:ac8:7d0d:: with SMTP id g13mr8420684qtb.367.1629744107686; Mon, 23 Aug 2021 11:41:47 -0700 (PDT) X-Received: by 2002:ac8:7d0d:: with SMTP id g13mr8420647qtb.367.1629744107400; Mon, 23 Aug 2021 11:41:47 -0700 (PDT) Received: from t490s ([2607:fea8:56a3:500::d413]) by smtp.gmail.com with ESMTPSA id 207sm9467761qkh.45.2021.08.23.11.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 11:41:46 -0700 (PDT) Date: Mon, 23 Aug 2021 14:41:45 -0400 From: Peter Xu To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: Re: [RFC PATCH v2 3/5] exec/memattrs: Introduce MemTxAttrs::bus_perm field Message-ID: References: <20210823164157.751807-1-philmd@redhat.com> <20210823164157.751807-4-philmd@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210823164157.751807-4-philmd@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=peterx@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=peterx@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.743, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , David Hildenbrand , Jason Wang , Li Qiang , qemu-devel@nongnu.org, Qiuhao Li , Alexander Bulekov , qemu-arm@nongnu.org, Gerd Hoffmann , Stefan Hajnoczi , Paolo Bonzini , "Edgar E . Iglesias" Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: cRZAhBwTMBuo On Mon, Aug 23, 2021 at 06:41:55PM +0200, Philippe Mathieu-Daudé wrote: > +/* Permission to restrict bus memory accesses. See MemTxAttrs::bus_perm */ > +enum { > + MEMTXPERM_UNSPECIFIED = 0, > + MEMTXPERM_UNRESTRICTED = 1, > + MEMTXPERM_RAM_DEVICE = 2, > +}; Is there a difference between UNSPECIFIED and UNRESTRICTED? If no, should we merge them? -- Peter Xu