Message ID | b3b408ffb9291e887029051a522a2c968a816d22.1687782442.git.mst@redhat.com |
---|---|
State | Accepted |
Commit | b3b408ffb9291e887029051a522a2c968a816d22 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3197982wrm; Mon, 26 Jun 2023 05:29:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56z8eXTxbK8dNYoyzFT1+Mc2NoKWgs/q4aQzjrzxr0wPIVXjvpy1302ekEi8Z0vh8wmlkq X-Received: by 2002:a05:6214:1cc1:b0:634:87c8:6a3f with SMTP id g1-20020a0562141cc100b0063487c86a3fmr8626747qvd.46.1687782590689; Mon, 26 Jun 2023 05:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687782590; cv=none; d=google.com; s=arc-20160816; b=aaF5k7si6tEmgUqrJ844mD/T3vIIZ5GTOs3d82yxtHWww6AcdRWT1WprkQeqBV5krk +oyLeofIhLzpPZigTlx1NuNshCKejGDuj9YiEfZ77BnqOIQHTX4xdnfY/IqQq6+9wUsF K8Dp0vDavdWXJcLie1pRYTHnh3RGotNafg/4tsPl++42sNkLfJwnsBJgz6DWApXHXjmr rhDH/W/qK9TwsRZ8zqavIa44KbwMLQ1nhNyuEZ3xlTS319Qs118py6hrN8ahk25N8reC eC4aekorQyoiRNM6VmFYI57WINdW1WwVIVowvzxU6fQl7V6TQqTnysBcWx1hfidCh/Tj TyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2SGHL2LHvwzaWBgCYGtwaYW5rqEUKCoWms25kqlSWFs=; fh=ADigGTJebWHcEiiDBOnUCMAPyQlUiPtSJbY5y0PKjrU=; b=mTIVX4jENb73dkL2+kirFuzx5635AxgD671rn6DkniGVSnvJpd8X3QaALQ+EnZO9t9 gXes2HZS4fI66VBVsRWbDB/U3I1CUzqdkwXfdxFD+HiFHk1FL3partpo7Rf9FFkmkTiz iBXlTlZCPbULU2GCNw9M/utwi8xVWObh+eOyNtRB4rwVPbHaDukuk1df/JHLwIdEjRji isIPtDfw2e+caiKCHVHq59RkU2uw0DRQuG0FrQspK4651rpkdvYcZ6UvbXx67oyOX34X NHW3EV3+oL11e1LEyrr9WxTOB5vuUBtk0F7LPvz18UhNVtBwwYFZIyxCMdYuWTFR1eUv i7Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LQvuRa3a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jr11-20020a0562142a8b00b006237c5646c2si1983331qvb.411.2023.06.26.05.29.50 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 05:29:50 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LQvuRa3a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1qDlKr-00027d-QW; Mon, 26 Jun 2023 08:28:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mst@redhat.com>) id 1qDlKe-0001x2-WB for qemu-devel@nongnu.org; Mon, 26 Jun 2023 08:28:38 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mst@redhat.com>) id 1qDlKd-0002pH-9f for qemu-devel@nongnu.org; Mon, 26 Jun 2023 08:28:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687782514; 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=2SGHL2LHvwzaWBgCYGtwaYW5rqEUKCoWms25kqlSWFs=; b=LQvuRa3ao3LiTTya/ajf/dpCuXNlfK/GgXVxO6k5mZjDpBhwUbs/fdR5CMhtcimGS18Zes JCIGBFMemue+oIxVGJ9lTauGfqVvDhuxOAxbe95OIR3mGLVkJvgUYqbvLyQjncXp9A+BV/ jwJUm1bBG+84tRQ8hIhc56Rd3ZFgbn4= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-316-ghBRY_QQOjupxYMR4jFSAw-1; Mon, 26 Jun 2023 08:28:33 -0400 X-MC-Unique: ghBRY_QQOjupxYMR4jFSAw-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2b6a0772b97so7638371fa.1 for <qemu-devel@nongnu.org>; Mon, 26 Jun 2023 05:28:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687782511; x=1690374511; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2SGHL2LHvwzaWBgCYGtwaYW5rqEUKCoWms25kqlSWFs=; b=G27Fbh2dAkNlzVYtpmVUIJjXd/dWBgEcylN2Ge8gcApo+IG6EhfaReOdUyHgVuB9eH mx2kfZtw5GOjmp5q2lwtxLJvU/iOzod0ZG7QyODYjpa9OHc1q01KTHiUjGoulrwHqs+Y AubyWTtOZ72arKxbUlQrcPg92ESxnsZTPqi1KEX9pYWSwmw5bZYsFCQAb0crGz6ujAy8 obcDalKJPc5aen0CTEojuZ3QX2c7wT7FkKB4eFcqPDkbvTPWEWtZJj2hu7T3Nn6/Zifs 69I6ooFgi8Gr7jxd4tI3s2mEHMEyrLlFTWheFltJDL1ksnztZ8xCJRnvL4k2Dk+sVpd+ +5Nw== X-Gm-Message-State: AC+VfDzuRdTG0xeeLyyuzhUpEgW1ED2nZ1sieQ/uYHtAL2SiEl0Pj5oV +MR+66IZB9wehAHOzXmdnyCc5mEKh/EVzGWXcsI3f0e8Q2clRIFm2YhJhPRAqG81hXeKVmoCye4 FxAoWSfaFavrFAIP2HC5npm+eZlZPvQAyzag9kTXla2iXhglwc3Y2jBvzDsmO0sRf+6vA X-Received: by 2002:a19:6418:0:b0:4f9:571d:c50e with SMTP id y24-20020a196418000000b004f9571dc50emr9597064lfb.36.1687782511487; Mon, 26 Jun 2023 05:28:31 -0700 (PDT) X-Received: by 2002:a19:6418:0:b0:4f9:571d:c50e with SMTP id y24-20020a196418000000b004f9571dc50emr9597045lfb.36.1687782511183; Mon, 26 Jun 2023 05:28:31 -0700 (PDT) Received: from redhat.com ([2.52.156.102]) by smtp.gmail.com with ESMTPSA id u18-20020a5d6ad2000000b00313e90d1d0dsm5325493wrw.112.2023.06.26.05.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 05:28:30 -0700 (PDT) Date: Mon, 26 Jun 2023 08:28:28 -0400 From: "Michael S. Tsirkin" <mst@redhat.com> To: qemu-devel@nongnu.org Cc: Peter Maydell <peter.maydell@linaro.org>, Philippe =?utf-8?q?Mathieu-Dau?= =?utf-8?q?d=C3=A9?= <philmd@linaro.org>, Thomas Huth <thuth@redhat.com>, Alex =?utf-8?q?Benn=C3=A9e?= <alex.bennee@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Peter Xu <peterx@redhat.com>, David Hildenbrand <david@redhat.com> Subject: [PULL 13/53] softmmu: Introduce qemu_target_page_mask() helper Message-ID: <b3b408ffb9291e887029051a522a2c968a816d22.1687782442.git.mst@redhat.com> References: <cover.1687782442.git.mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <cover.1687782442.git.mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
None
|
expand
|
diff --git a/include/exec/target_page.h b/include/exec/target_page.h index bbf37aea17..98ffbb5c23 100644 --- a/include/exec/target_page.h +++ b/include/exec/target_page.h @@ -15,6 +15,7 @@ #define EXEC_TARGET_PAGE_H size_t qemu_target_page_size(void); +int qemu_target_page_mask(void); int qemu_target_page_bits(void); int qemu_target_page_bits_min(void); diff --git a/softmmu/physmem.c b/softmmu/physmem.c index 6bdd944fe8..bda475a719 100644 --- a/softmmu/physmem.c +++ b/softmmu/physmem.c @@ -3359,6 +3359,11 @@ size_t qemu_target_page_size(void) return TARGET_PAGE_SIZE; } +int qemu_target_page_mask(void) +{ + return TARGET_PAGE_MASK; +} + int qemu_target_page_bits(void) { return TARGET_PAGE_BITS;