Message ID | 20241114161845.502027-28-ajones@ventanamicro.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F64F1A76D0 for <kvm@vger.kernel.org>; Thu, 14 Nov 2024 16:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731601149; cv=none; b=gz75W8/wjX9qKAISEIVjsD1AvBkULttIv1fXoZ/tRA/dKhjfZY/3zURszP+RK8r7qE0IUpIhRKVMJVOOwzTHyVml9BbgbsmFg79NS1n10ulL3ILSY8cQZoypcsJ9IJBT6rs0pn0ce1A+cM6rSuI2eZvnC+BcPk6TMrE0mRuGXVc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731601149; c=relaxed/simple; bh=mWR/+tZ7zPAyQgPDW6T1+Yz2Dl/T8S6Wjb1XP+iFats=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=InrgkbMeVnERMR8LHNZbZDQZOSCYbKZCPLFMXX4pJNUAVV8XLOrAlZCGJuQxpPOQok372Cxu9t+g6UGTyXXyWrVgAeBudb215ie91KQzqCZVNjSm+fdFtj/KS1CDoxcYmkR36Xp42ats5wCKxNkF8mey99yIH5LY4mSZflVYeaM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=V4MChWXo; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="V4MChWXo" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-53d8c08cfc4so685035e87.3 for <kvm@vger.kernel.org>; Thu, 14 Nov 2024 08:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1731601146; x=1732205946; darn=vger.kernel.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=ftdmF/h5yhFV9hvEqaih+NCLoaifWjggdlhRka1xblk=; b=V4MChWXoTH/de5eiio/PWHY2gS252zyJrZmd26MMgFImZ9oZJrrTHQj55XbjCshc7I UT2lu83aGx9xiccEqDAz0dG7xqcjol/pjMNVXLDXE+inOdtF+1TVShli5emzmLOGpbIz PYiG3/5SfMZl4TIwlk8qdvCfZsYThRRcujHfj4M35XuZF8x/8GgqqUfngihVmg7wS5Qu efP+atBdKIP883PIWsRI3iPJmW3OL7Oq+dqP443wcKSVh3MhZnZFqLGAlDEEU4F3kgcq K6iCmIN6Aj1cipwnHWwIeXrMppxQjgvxnVN9iyiZ3y6tR72Btv+HQt4pFvYy2Xlx+dCm xoSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731601146; x=1732205946; 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=ftdmF/h5yhFV9hvEqaih+NCLoaifWjggdlhRka1xblk=; b=YbDNFnO1K5629i/EFQm7CTkdmoCPG46iOCqG9IiFb55EjttIct9pLE57SdUi5IAGNx 1aFStfx/VymZ0anX/OTunwcuxWuYsTMB8JbYPhCG0K4cNsdYuPq/l/3XOLTca7lz+yub xDSQCtb/v+0Hk/bPmp3/LwY6G/n0YxoFICGdZEAqFvtw0zXhDsqpUIBDhecZK/bOuf+P TX+LogyPDMYeSGM4SshItmF4z8Ua20jK9EUgex7+aEEfTqF3yxMUiz+s4qA1ukuJgZ3q zGKvwVmEwzCrzm1X66gp8WTvjIKO6e75RWbVA3NpI3WPa28cAkP/JxoKHv4Nr9Y7iSQL H7sw== X-Forwarded-Encrypted: i=1; AJvYcCUjAgVe9cFAS6Nub4LzRvyHH3d4eIQimPEdIIK2SyhMey57ul540ZF0U2DiFTttCDUJ/VI=@vger.kernel.org X-Gm-Message-State: AOJu0YzwBOH2bZW83AJE0KtjdZLqUI68KSNO3MpBgW+0DDrqfL4CJJIz Alc7g4+Y9lEB+N/aqPkIgIqW2ZLN/2WhGWVmstH5LRIlMoBzHT5qdT6otGy8Hhg= X-Google-Smtp-Source: AGHT+IEJJHbd90NQ7GNwzK7jz3We2gQcoeU/8zkdAd9xuaV8q/ybA/J9tvQBrrlFpg45NfoyESG9lg== X-Received: by 2002:a05:6512:39c2:b0:53d:a99e:b768 with SMTP id 2adb3069b0e04-53da99ebce0mr590942e87.25.1731601146055; Thu, 14 Nov 2024 08:19:06 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dab76dafsm25510275e9.10.2024.11.14.08.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 08:19:05 -0800 (PST) From: Andrew Jones <ajones@ventanamicro.com> To: iommu@lists.linux.dev, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: tjeznach@rivosinc.com, zong.li@sifive.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, anup@brainfault.org, atishp@atishpatra.org, tglx@linutronix.de, alex.williamson@redhat.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Subject: [RFC PATCH 11/15] RISC-V: Define irqbypass vcpu_info Date: Thu, 14 Nov 2024 17:18:56 +0100 Message-ID: <20241114161845.502027-28-ajones@ventanamicro.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241114161845.502027-17-ajones@ventanamicro.com> References: <20241114161845.502027-17-ajones@ventanamicro.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: <kvm.vger.kernel.org> List-Subscribe: <mailto:kvm+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:kvm+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
iommu/riscv: Add irqbypass support
|
expand
|
diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h index 7b038f3b7cb0..8588667cbb5f 100644 --- a/arch/riscv/include/asm/irq.h +++ b/arch/riscv/include/asm/irq.h @@ -23,6 +23,15 @@ void riscv_set_intc_hwnode_fn(struct fwnode_handle *(*fn)(void)); struct fwnode_handle *riscv_get_intc_hwnode(void); +struct riscv_iommu_vcpu_info { + u64 msi_addr_pattern; + u64 msi_addr_mask; + u32 group_index_bits; + u32 group_index_shift; + u64 gpa; + u64 hpa; +}; + #ifdef CONFIG_ACPI enum riscv_irqchip_type {
The vcpu_info parameter to irq_set_vcpu_affinity() effectively defines an arch specific IOMMU <=> hypervisor protocol. Provide a definition for the RISCV IOMMU. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> --- arch/riscv/include/asm/irq.h | 9 +++++++++ 1 file changed, 9 insertions(+)