From nobody Sat Oct 4 23:47:30 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1759394786; cv=none; d=zohomail.com; s=zohoarc; b=XyAS6CoIC6JxZ8T/aSDQOkmfW543v/AKAZ0P0aLZ/i5IlmTGmJmcNjcd2EBlHJniyvIDfRC24FRlkTCmFcsh+9N6wscJwGIskiynA4hHzcxtk5E06EJS5qKdg1+qI+s3lzYbxrMaxhDDf+uKIRX689ESaCopi8S/SinmuvcF0ms= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759394786; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=W71XKN8BDb9kJ6RH2tt1PLzXlP9jppatkbhtyR1OYg0=; b=ST3XT0SKNTnCw+1KUAXMc3sYVeHx48iWaY7ekt/ZOu1cNp9pBBnTERmcwxaSnCKlyBUKNy+nyZjvoiMLITs8OIAFPxqhvK+wfnMrBEBTMvmToGb9q1UY6hE/Q3T3wS7aFyGOVsTbzwOb7NCChN1w8MFSlD4GbesnAcpWhhonGQM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1759394786149741.3917561693697; Thu, 2 Oct 2025 01:46:26 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1135467.1472607 (Exim 4.92) (envelope-from ) id 1v4Ewx-0004Uo-Tm; Thu, 02 Oct 2025 08:46:07 +0000 Received: by outflank-mailman (output) from mailman id 1135467.1472607; Thu, 02 Oct 2025 08:46:07 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1v4Ewx-0004RX-HH; Thu, 02 Oct 2025 08:46:07 +0000 Received: by outflank-mailman (input) for mailman id 1135467; Thu, 02 Oct 2025 08:46:06 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1v4Etv-000821-7b for xen-devel@lists.xenproject.org; Thu, 02 Oct 2025 08:42:59 +0000 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [2a00:1450:4864:20::336]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id cc19fdd3-9f6b-11f0-9d14-b5c5bf9af7f9; Thu, 02 Oct 2025 10:42:58 +0200 (CEST) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-46e37d6c21eso4996385e9.0 for ; Thu, 02 Oct 2025 01:42:58 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e61a029a0sm71252835e9.13.2025.10.02.01.42.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 02 Oct 2025 01:42:57 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: cc19fdd3-9f6b-11f0-9d14-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759394578; x=1759999378; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W71XKN8BDb9kJ6RH2tt1PLzXlP9jppatkbhtyR1OYg0=; b=mEEwC0Ytg3RNjH8coCMIR2KbDTCy+Q/SbrY/VwbVNg+hiB/FgAsM6UhCa7gCu0kpqf O3rPz/DG/5N4/gtdG0IuQr7O8jjrr4b9vsdVjYVuOUYpHnaeLnZwrhD5FcmogPuVHRgT I5duiYkSKfEUb+rGEtELNypYw/WM6gBRFYhjOzkq1Pmt7/TiM7AwyR3SzCyQZucveltv PYnyh2OegafQMB5YYmB0O5r2P+B2I8VrwDMkzvBlCsIekTn6C2ejcHGOr4yyCShjGt16 Zt6gnRyii6XFcUSkiWu+bbbTSxSqltnC9HBDt90xIlVN0YyvVw5fRuzRRW0+QdyVrAtL lICg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759394578; x=1759999378; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W71XKN8BDb9kJ6RH2tt1PLzXlP9jppatkbhtyR1OYg0=; b=iMuwJqw+8ExbGqQC+rS377521MtvSmx1QBLjDrKPUPeEK5GxCiyC3/0oBaynOkDnfx NZJZsjAiHiNcty0X4CvZ0QQMMpOIzHLkCOgaxr8lQdZneRdS0qo2YTk0KUv33bGDA2Tr qqk7MQBd2HjpTFukP729raLAnJJDTV9LzuU351gp10ZxssI0itt7U1DYEU08tggrGQH5 7xgw8YzIeUqLFsGFuMKGVydajTsnLkb8BUAHJVq1B8bAwn2uBLPU4bjm6kil5YHB+9/z fk1kgEn7PaCnAENzZL7pdg7zfzEkc78Xffk3VZKD++8cNh7fTy1wQ5CRpDFYT0BMH2Fj TbLw== X-Forwarded-Encrypted: i=1; AJvYcCWRpo45MCBWU/nH2mGH2U86WXuAErrFmQlh3U0keWwjsVy7y9i67ew6xm/Cty8uWv9E3XmBBKlO88o=@lists.xenproject.org X-Gm-Message-State: AOJu0YyvsdoTmO99ekC2HP4uAPF0aw1QqFDIZMZ/RLLwDpzzyA2Bgi1M iaL/HUqioy5m4d66cgLecwXLxXImcJNqi/FiQGRWJoH+qQiIJwWZcjsDH7Ni4rQLHTs= X-Gm-Gg: ASbGncsLnmN329QHuK9Q8asFEJdgo6tDJ0jySjZ1UO2rPLJGmmGqqt9xWniigRq2tVv DLak5d2tnUaOl0jUumL8BXVLQCOmUNZPMz2VQCeEuGoyO/eqCu+i0TPSxosR1zop2h8ltyWklEw AAqIhVBPJefL7u8LKsR3rAuF1Uxnr1330PPjkkoeAj2c+a0/jYjriTPVjZaCji+wBbzfwTz7cs8 JjkgOeUpteCCl078STrf2UxQG4TjfA4hupWRKoUM76o3+NugLHeIrQCWWnHsqHjjEVdtPvUQamc vDjt5w6IA1ut2MDDVKmJkWvU9DE+vu7rSb9ykLIklynWGxniRfIb07B6Y1e0mHBcocS1DbMjw5n NBOqDDCVZg5RKTCHU0Btj7dCnjbuK/hXN1W5SFg3BhzgFQkaSkqTVmu5BXtT1pJcUQotdJJDQ7K fAi7LxJJQNYjTmR+UVngsd7L3ZTF32FQ== X-Google-Smtp-Source: AGHT+IF+vQnTZyjnghBewujCyKQZ3vteqHFK+eM/Ja5h6DC+kmKBchs84xyaNt6pAje4wwu2ECUb3w== X-Received: by 2002:a05:600c:37c4:b0:46e:3d41:5fed with SMTP id 5b1f17b1804b1-46e6127cf3cmr49323625e9.11.1759394577925; Thu, 02 Oct 2025 01:42:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Reinoud Zandijk Subject: [PATCH v4 11/17] target/i386/nvmm: Inline cpu_physical_memory_rw() in nvmm_mem_callback Date: Thu, 2 Oct 2025 10:41:56 +0200 Message-ID: <20251002084203.63899-12-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251002084203.63899-1-philmd@linaro.org> References: <20251002084203.63899-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1759394788255116600 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/i386/nvmm/nvmm-all.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/i386/nvmm/nvmm-all.c b/target/i386/nvmm/nvmm-all.c index ed424251673..2e442baf4b7 100644 --- a/target/i386/nvmm/nvmm-all.c +++ b/target/i386/nvmm/nvmm-all.c @@ -15,6 +15,7 @@ #include "accel/accel-ops.h" #include "system/nvmm.h" #include "system/cpus.h" +#include "system/memory.h" #include "system/runstate.h" #include "qemu/main-loop.h" #include "qemu/error-report.h" @@ -516,7 +517,9 @@ nvmm_io_callback(struct nvmm_io *io) static void nvmm_mem_callback(struct nvmm_mem *mem) { - cpu_physical_memory_rw(mem->gpa, mem->data, mem->size, mem->write); + /* TODO: Get CPUState via mem->vcpu? */ + address_space_rw(&address_space_memory, mem->gpa, MEMTXATTRS_UNSPECIFI= ED, + mem->data, mem->size, mem->write); =20 /* Needed, otherwise infinite loop. */ current_cpu->vcpu_dirty =3D false; --=20 2.51.0