From nobody Mon Feb 9 12:43:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1599131331; cv=none; d=zohomail.com; s=zohoarc; b=djS28Syiimz8R5dfDPuqfa6eQMTt5Lcac7/T8GnsdiPVLEjxNDD+Z+Qf7O40GYSV5BaKvOC/ivROK0ZjSjHIgxohOfOGGFI4M7i1tfRe4HXQ6n+NMS7Sp5Z3M759P5XvHAMHuknWvRJyEWcVQchBr/NbiOeJ+iNeUj/sXapTk1o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599131331; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=nruMQlHxT2HZJRXPESpouaZWFiIsjV8XHOgEIt8o5lI=; b=Sw9MuOGEIuwCyHTzm764yfQl2pgmjTnYlyhguyyiECkjqQwNvQ0ZQSMk+9sRRz2+g2RvH4oJ0+/OVHVTus2huYDLNUJgUxPW7cGlfeEj1fbtGYgm91sKMOYCwXGbnH36XmaWy+jpMek+FHyqGDKuQH8A8Uns4zMeRBLWBgo8g/A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1599131331510828.5154751616079; Thu, 3 Sep 2020 04:08:51 -0700 (PDT) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-492-Eu-GRY9jMPGfCJnmMLRlUA-1; Thu, 03 Sep 2020 07:08:48 -0400 Received: by mail-wr1-f72.google.com with SMTP id j2so947877wrr.14 for ; Thu, 03 Sep 2020 04:08:48 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (50.red-83-52-54.dynamicip.rima-tde.net. [83.52.54.50]) by smtp.gmail.com with ESMTPSA id a85sm4028592wmd.26.2020.09.03.04.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 04:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599131330; 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=nruMQlHxT2HZJRXPESpouaZWFiIsjV8XHOgEIt8o5lI=; b=VWbYzox3QjKA9jJ+O6GjdFzIELQ2SoyDG26lHSs/qg4AGo+RnTBGkQ7fgBetAFVU9y8X7b kUvZJ1NT/wJI56i3otaHxrGE4Q2dwPZnNTfEF7+8kxP8bvydbCEeby0JnuSXhpd7FNhWtG l0Iqb4RT6+p2HHlkCdeTnTHQm0B4mME= X-MC-Unique: Eu-GRY9jMPGfCJnmMLRlUA-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=nruMQlHxT2HZJRXPESpouaZWFiIsjV8XHOgEIt8o5lI=; b=PYzI6jh/64UcnNi3cb1L19m0bTEF2YTXrU8d3ippwjWDQTpgkmzh0CoGx0GIrCOS5p 5rh1bHH5xW1KKfmRtaAIwmxkP1ihxOHGg3sjHOxqptKmcmPcBMby9w6bI00K8QddCmbt PYCyu8WvCb7eptfSjgH0E8hZx7/HCaW0h1Za9f7zm9/W6mnLKGS3Dxanb0C7RYsFQi08 bFPGcWZxgNBQT689H2MEdqUTBkEqcSPzJ4avsCjPTNvwk7wkjV/LOMk+SFih3aw85f4H 5qxalEFLHbr6JMGgFZM5VTr0zej0hOlcSIfDggLnwt9glkHs7sETw4ZyMnu6p9gq8/5c kKwA== X-Gm-Message-State: AOAM533inB1iH74SCJCoiCr1IdKqIbSNjueZAofEbFh0aN25WP6NIu1G l1DjFwDjwMTd1r4LTjy7VEcyiTVD88y+3lDoQzI6CUTrS79IFOT7BA4U0kZE13OifHI88gHRmmM d9UgX+OIfM+5EZg== X-Received: by 2002:a05:600c:210c:: with SMTP id u12mr2040111wml.185.1599131327122; Thu, 03 Sep 2020 04:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGrtr7MQ758xmiWfsJmkkStZSQEHC0Q3qRpEOKJcrFtHv0snS8g3uYtQy/OAXbkKyFEnYdGw== X-Received: by 2002:a05:600c:210c:: with SMTP id u12mr2040078wml.185.1599131326964; Thu, 03 Sep 2020 04:08:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: John Snow , Gerd Hoffmann , Li Qiang , "Michael S. Tsirkin" , "Edgar E. Iglesias" , Eduardo Habkost , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jan Kiszka , Emanuele Giuseppe Esposito , Eric Auger , Peter Chubb , Beniamino Galvani , Robert Foley , Paolo Bonzini , "Emilio G . Cota" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jason Wang , Andrew Baumann , Laszlo Ersek , Klaus Jensen , Stefan Hajnoczi , Tony Nguyen , Peter Xu , qemu-arm@nongnu.org, Prasad J Pandit , qemu-block@nongnu.org, Alistair Francis , Andrew Jeffery , Alexander Bulekov , Marcel Apfelbaum , "Edgar E . Iglesias" , Joel Stanley , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Peter Maydell , qemu-ppc@nongnu.org, Mark Cave-Ayland , David Gibson , Richard Henderson Subject: [PATCH 02/12] dma: Let dma_memory_valid() take MemTxAttrs argument Date: Thu, 3 Sep 2020 13:08:21 +0200 Message-Id: <20200903110831.353476-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200903110831.353476-1-philmd@redhat.com> References: <20200903110831.353476-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.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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/hw/ppc/spapr_vio.h | 2 +- include/sysemu/dma.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hw/ppc/spapr_vio.h b/include/hw/ppc/spapr_vio.h index bed7df60e35..f134f6cf574 100644 --- a/include/hw/ppc/spapr_vio.h +++ b/include/hw/ppc/spapr_vio.h @@ -96,7 +96,7 @@ static inline void spapr_vio_irq_pulse(SpaprVioDevice *de= v) static inline bool spapr_vio_dma_valid(SpaprVioDevice *dev, uint64_t taddr, uint32_t size, DMADirection dir) { - return dma_memory_valid(&dev->as, taddr, size, dir); + return dma_memory_valid(&dev->as, taddr, size, dir, MEMTXATTRS_UNSPECI= FIED); } =20 static inline int spapr_vio_dma_read(SpaprVioDevice *dev, uint64_t taddr, diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h index 80c5bc3e02d..fe3999dba59 100644 --- a/include/sysemu/dma.h +++ b/include/sysemu/dma.h @@ -73,11 +73,11 @@ static inline void dma_barrier(AddressSpace *as, DMADir= ection dir) * dma_memory_{read,write}() and check for errors */ static inline bool dma_memory_valid(AddressSpace *as, dma_addr_t addr, dma_addr_t len, - DMADirection dir) + DMADirection dir, MemTxAttrs attrs) { return address_space_access_valid(as, addr, len, dir =3D=3D DMA_DIRECTION_FROM_DEVICE, - MEMTXATTRS_UNSPECIFIED); + attrs); } =20 static inline int dma_memory_rw_relaxed(AddressSpace *as, dma_addr_t addr, --=20 2.26.2