From nobody Tue Feb 10 22:18:09 2026 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1208F21D3F8; Mon, 11 Aug 2025 02:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754878439; cv=none; b=Ygeu6ni4dNAUGjIzASZx/BGnUpJLf2mO1KZ5+B5AJgt4WogIQ0+eoeHnCU4MMgXnHxFn01QASSF4beAy4n5eUXKB6ENr8HMWeWn8k7+iD5FuX1Rm+2R9/ialTpoOoFtHhLXVEQkLgQeMW0dCuj4RM/Jsr1O5iCOfn/S0hd++27w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754878439; c=relaxed/simple; bh=7vAkJtKo3FveG5MTxuL5gAc7sv8e8abfVuekYqY2PPc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CrRlw4VqW7eWB+EQXGjtMhoZHuaPzBud9xojBf0MjGruiouqptC4URSnkpPz9HMINUecUAzSXXsxdyh1u6b3srzmB3JuZ2xgbJAKFEUvzXXtvMAb8oB7k9ZkDfUU4Set/jFwbJDj0/3us2A6gz6ROBp9mSzkrU/j0p1PJPYsm5E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.2.5.213]) by gateway (Coremail) with SMTP id _____8BxYa_bUZlooxg+AQ--.12809S3; Mon, 11 Aug 2025 10:13:47 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.213]) by front1 (Coremail) with SMTP id qMiowJDxQ+TYUZloMZtBAA--.48509S5; Mon, 11 Aug 2025 10:13:46 +0800 (CST) From: Bibo Mao To: Tianrui Zhao , Huacai Chen , Xianglai Li Cc: kvm@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] LoongArch: KVM: Add IRR and ISR register read emulation Date: Mon, 11 Aug 2025 10:13:42 +0800 Message-Id: <20250811021344.3678306-4-maobibo@loongson.cn> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20250811021344.3678306-1-maobibo@loongson.cn> References: <20250811021344.3678306-1-maobibo@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: qMiowJDxQ+TYUZloMZtBAA--.48509S5 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Content-Type: text/plain; charset="utf-8" With 7A1000 user manual, there is register PCH_PIC_INT_IRR_START and PCH_PIC_INT_ISR_START, add read access emulation in function loongarch_pch_pic_read() here. Signed-off-by: Bibo Mao --- arch/loongarch/kvm/intc/pch_pic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/loongarch/kvm/intc/pch_pic.c b/arch/loongarch/kvm/intc/pc= h_pic.c index 70b8cbeea869..2e2613c436f6 100644 --- a/arch/loongarch/kvm/intc/pch_pic.c +++ b/arch/loongarch/kvm/intc/pch_pic.c @@ -158,6 +158,12 @@ static int loongarch_pch_pic_read(struct loongarch_pch= _pic *s, gpa_t addr, int l case PCH_PIC_POLARITY_START ... PCH_PIC_POLARITY_END: data =3D s->polarity; break; + case PCH_PIC_INT_IRR_START: + data =3D s->irr; + break; + case PCH_PIC_INT_ISR_START: + data =3D s->isr; + break; default: ret =3D -EINVAL; } --=20 2.39.3