From nobody Tue Feb 10 02:43:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1621363104; cv=none; d=zohomail.com; s=zohoarc; b=LpJ7enRZYNhVUzWtOLQQGvWC6iRWbv6TFoFfdaY7K/4yxbqhFfREpCJrFz7JDm2dbe+U0tq8cuLTIPoqODeEH7lE+zYw2Ub/bUl+Fg9Xicv8yI/Wr5GBsas/4jUJeBpYsc3G4wNbB9DzOzrcHfxLp3W2iEkAMR3d//bf4eyMZgQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621363104; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=qqYM/7O26sE43anlCu8uHsOrRtDjTSh1fZivMot9f2U=; b=WU/GagXScheOL4zzoNKAydgIwv8bz8LsmliaICV+ueIgpj408qHXjaEGoY3Y6yOaxJEi++j83OFOmjYzEQFNXPJRBvii9kRuHvvGzDJDva+poPV+U1lDB3S+y75uIl3FhbaOvDFr4h96xx96q2GMdug3iLqYTjnNISdygkQqRaQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1621363104095400.87809652456497; Tue, 18 May 2021 11:38:24 -0700 (PDT) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-291-71zkICWiPyWH08RIaOoo-A-1; Tue, 18 May 2021 14:38:19 -0400 Received: by mail-ed1-f69.google.com with SMTP id q18-20020a0564025192b02903888712212fso6246905edd.19 for ; Tue, 18 May 2021 11:38:19 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (31.red-83-51-215.dynamicip.rima-tde.net. [83.51.215.31]) by smtp.gmail.com with ESMTPSA id k22sm1498256ejz.108.2021.05.18.11.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 11:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621363103; 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=qqYM/7O26sE43anlCu8uHsOrRtDjTSh1fZivMot9f2U=; b=Uh/ZKL+sACAqi4+ypJJbLSHUkjGTn26h9gOjNMZr1XjZWhXKcxbwWgansQeoe5X26TMtyO WOQ/h4nSF5HVnciBV5CBhaxgjNaW0cJfvIcYprufwFwRbzAU4vpbrFUZmOvWlDvRJQFKUV NnkfbsE6BrH7nJsGkUCr/tStTg29agI= X-MC-Unique: 71zkICWiPyWH08RIaOoo-A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qqYM/7O26sE43anlCu8uHsOrRtDjTSh1fZivMot9f2U=; b=sUgEYKyS2uLsAneOqjgWm7ZiOOPLHklZgch6I99GfKJnHCQ56Mh1VuAUU5+fqGX/zZ /e2mkTNVh+vpVy14cm12QXlLfxfaj8B2pMf3nXEKRvdf7T31vx8mjfw+g1IxcXHJZu6z ZOin/ksomgN6rydndw6aS8yamUibWZeLzYI5c8udj3QW301f+rh4wZntaqrP5YOaVx+B QDzlZI/wNobFWpiShi1ZLeypDDd2fW6KT1DOb6bFp3Gi+kpboKUmqF/b+FRHLbhYmzgy Gn6r7pPzkSvfCos7WwdaXNL0AnNDK6BGaPxeKea57l1yRh4HQ44X7hqEFOT3wi1gudl/ RXAg== X-Gm-Message-State: AOAM531vQmCNJ2vINQYqRv/c2WjLhObkx2BEKJ6+6IrZCOnjPrAlJfNS OeLU29z1qEzLl8Aml3XdZMfkz45En60zUTmBeIdbKPCuu7Ubajk1tExV00W8k/UUmMKklgLsTNg gp3uK0hqdeKi6ag== X-Received: by 2002:a17:906:6c96:: with SMTP id s22mr7583195ejr.468.1621363098317; Tue, 18 May 2021 11:38:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvH82nxBgFJavZyhFjeAm/jhHskgo7jepWzdvR3sz8IDH4v59U8/quTmPbVhYd9OV3TwnvlQ== X-Received: by 2002:a17:906:6c96:: with SMTP id s22mr7583186ejr.468.1621363098151; Tue, 18 May 2021 11:38:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bibo Mao , "Michael S. Tsirkin" , Richard Henderson , Paolo Bonzini , Jiaxun Yang , Peter Xu , Huacai Chen , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [RFC PATCH 16/25] exec/memory: Add methods for aligned pointer access (physical memory) Date: Tue, 18 May 2021 20:36:46 +0200 Message-Id: <20210518183655.1711377-17-philmd@redhat.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210518183655.1711377-1-philmd@redhat.com> References: <20210518183655.1711377-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/exec/memory.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index 7eeabbceef3..28c0e68e7d8 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -2337,6 +2337,11 @@ static inline void address_space_stb_cached(MemoryRe= gionCache *cache, #define ARG1_DECL MemoryRegionCache *cache #include "exec/memory_ldst_phys.h.inc" =20 +#define SUFFIX _cached_aligned +#define ARG1 cache +#define ARG1_DECL MemoryRegionCache *cache +#include "exec/memory_ldst_phys.h.inc" + /* address_space_cache_init: prepare for repeated access to a physical * memory region * --=20 2.26.3