All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Jing Zhang <jingzhangos@google.com>
Cc: KVM <kvm@vger.kernel.org>, KVMARM <kvmarm@lists.linux.dev>,
	ARMLinux <linux-arm-kernel@lists.infradead.org>,
	Oliver Upton <oupton@google.com>, Joey Gouly <joey.gouly@arm.com>,
	Zenghui Yu <yuzenghui@huawei.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Kunkun Jiang <jiangkunkun@huawei.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Andre Przywara <andre.przywara@arm.com>,
	Colton Lewis <coltonlewis@google.com>,
	Raghavendra Rao Ananta <rananta@google.com>,
	Shusen Li <lishusen2@huawei.com>, Eric Auger <eauger@redhat.com>
Subject: Re: [PATCH v3 4/4] KVM: selftests: aarch64: Test VGIC ITS tables save/restore
Date: Wed, 06 Nov 2024 13:26:57 +0000	[thread overview]
Message-ID: <86a5ec1oim.wl-maz@kernel.org> (raw)
In-Reply-To: <20241106083035.2813799-5-jingzhangos@google.com>

[Adding Eric to the list, since he worked a lot on the save/restore code]

On Wed, 06 Nov 2024 08:30:35 +0000,
Jing Zhang <jingzhangos@google.com> wrote:
> 
> Add a selftest to verify the correctness of the VGIC ITS mappings after
> the save/restore operations (KVM_DEV_ARM_ITS_SAVE_TABLES /
> KVM_DEV_ARM_ITS_RESTORE_TABLES).

What are you checking? The saved data? The restored data?

> Also calculate the time spending on save/restore operations.

Is that really relevant? I don't think performance matters at this
stage, if we can't even have reliable data.

> This test uses some corner cases to capture the save/restore bugs. It

Which corner cases?

> will be used to verify the future incoming changes for the VGIC ITS
> tables save/restore.
> 
> To capture the "Invalid argument (-22)" error, run the test without any
> option. To capture the wrong/lost mappings, run the test with '-s'
> option.
> Since the VGIC ITS save/restore bug is caused by orphaned DTE/ITE
> entries, if we run the test with '-c' option whih clears the tables
> before the save operation, the test will complete successfully.

I'm sorry, but this description is meaningless, as you need to know
what is the bug that has been fixed.

Also, how is someone supposed to run this thing? Without options? With
options? With any combination of options?

From what I understand, the various options are designed to help
debugging a broken vgic implementation. So please document what the
options do rather than an bug that is supposed to be already fixed.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

  reply	other threads:[~2024-11-06 13:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-06  8:30 [PATCH v3 0/4] Some fixes about vgic-its Jing Zhang
2024-11-06  8:30 ` [PATCH v3 1/4] KVM: arm64: vgic-its: Add a data length check in vgic_its_save_* Jing Zhang
2024-11-06 12:03   ` Marc Zyngier
2024-11-06 18:16     ` Jing Zhang
2024-11-06  8:30 ` [PATCH v3 2/4] KVM: arm64: vgic-its: Clear DTE when MAPD unmaps a device Jing Zhang
2024-11-06 13:14   ` Marc Zyngier
2024-11-06 18:30     ` Jing Zhang
2024-11-06  8:30 ` [PATCH v3 3/4] KVM: arm64: vgic-its: Clear ITE when DISCARD frees an ITE Jing Zhang
2024-11-06  8:30 ` [PATCH v3 4/4] KVM: selftests: aarch64: Test VGIC ITS tables save/restore Jing Zhang
2024-11-06 13:26   ` Marc Zyngier [this message]
2024-11-06 18:41     ` Jing Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a5ec1oim.wl-maz@kernel.org \
    --to=maz@kernel.org \
    --cc=andre.przywara@arm.com \
    --cc=coltonlewis@google.com \
    --cc=eauger@redhat.com \
    --cc=jiangkunkun@huawei.com \
    --cc=jingzhangos@google.com \
    --cc=joey.gouly@arm.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lishusen2@huawei.com \
    --cc=oupton@google.com \
    --cc=pbonzini@redhat.com \
    --cc=rananta@google.com \
    --cc=suzuki.poulose@arm.com \
    --cc=yuzenghui@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.