<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/kvm/lib/aarch64, branch linux-5.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-04-13T17:27:13Z</updated>
<entry>
<title>kvm: selftests: aarch64: use a tighter assert in vgic_poke_irq()</title>
<updated>2022-04-13T17:27:13Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2022-01-27T03:08:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f39506e0ff3e6dfb25dfdc31936a32f6edec5762'/>
<id>urn:sha1:f39506e0ff3e6dfb25dfdc31936a32f6edec5762</id>
<content type='text'>
[ Upstream commit b53de63a89244c196d8a2ea76b6754e3fdb4b626 ]

vgic_poke_irq() checks that the attr argument passed to the vgic device
ioctl is sane. Make this check tighter by moving it to after the last
attr update.

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Reported-by: Reiji Watanabe &lt;reijiw@google.com&gt;
Cc: Andrew Jones &lt;drjones@redhat.com&gt;
Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20220127030858.3269036-6-ricarkol@google.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>kvm: selftests: aarch64: fix some vgic related comments</title>
<updated>2022-04-13T17:27:13Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2022-01-27T03:08:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b6ca260912abe87d1ddc6cf0b81622282e50bb3f'/>
<id>urn:sha1:b6ca260912abe87d1ddc6cf0b81622282e50bb3f</id>
<content type='text'>
[ Upstream commit a5cd38fd9c47b23abc6df08d6ee6a71b39038185 ]

Fix the formatting of some comments and the wording of one of them (in
gicv3_access_reg).

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Reported-by: Reiji Watanabe &lt;reijiw@google.com&gt;
Cc: Andrew Jones &lt;drjones@redhat.com&gt;
Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20220127030858.3269036-5-ricarkol@google.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>kvm: selftests: aarch64: fix assert in gicv3_access_reg</title>
<updated>2022-04-13T17:27:13Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2022-01-27T03:08:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b17eb600bbd1326b39083041575a73e9f216bead'/>
<id>urn:sha1:b17eb600bbd1326b39083041575a73e9f216bead</id>
<content type='text'>
[ Upstream commit cc94d47ce16d4147d546e47c8248e8bd12ba5fe5 ]

The val argument in gicv3_access_reg can have any value when used for a
read, not necessarily 0.  Fix the assert by checking val only for
writes.

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Reported-by: Reiji Watanabe &lt;reijiw@google.com&gt;
Cc: Andrew Jones &lt;drjones@redhat.com&gt;
Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20220127030858.3269036-2-ricarkol@google.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: aarch64: Skip tests if we can't create a vgic-v3</title>
<updated>2022-02-25T13:02:28Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2022-02-23T13:16:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=456f89e0928ab938122a40e9f094a6524cc158b4'/>
<id>urn:sha1:456f89e0928ab938122a40e9f094a6524cc158b4</id>
<content type='text'>
The arch_timer and vgic_irq kselftests assume that they can create a
vgic-v3, using the library function vgic_v3_setup() which aborts with a
test failure if it is not possible to do so. Since vgic-v3 can only be
instantiated on systems where the host has GICv3 this leads to false
positives on older systems where that is not the case.

Fix this by changing vgic_v3_setup() to return an error if the vgic can't
be instantiated and have the callers skip if this happens. We could also
exit flagging a skip in vgic_v3_setup() but this would prevent future test
cases conditionally deciding which GIC to use or generally doing more
complex output.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Tested-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20220223131624.1830351-1-broonie@kernel.org
</content>
</entry>
<entry>
<title>Merge branch kvm-arm64/selftest/irq-injection into kvmarm-master/next</title>
<updated>2022-01-04T14:03:43Z</updated>
<author>
<name>Marc Zyngier</name>
</author>
<published>2022-01-04T14:03:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ad7937dc774527abd324a7e56d18bad136f3c364'/>
<id>urn:sha1:ad7937dc774527abd324a7e56d18bad136f3c364</id>
<content type='text'>
* kvm-arm64/selftest/irq-injection:
  : .
  : New tests from Ricardo Koller:
  : "This series adds a new test, aarch64/vgic-irq, that validates the injection of
  : different types of IRQs from userspace using various methods and configurations"
  : .
  KVM: selftests: aarch64: Add test for restoring active IRQs
  KVM: selftests: aarch64: Add ISPENDR write tests in vgic_irq
  KVM: selftests: aarch64: Add tests for IRQFD in vgic_irq
  KVM: selftests: Add IRQ GSI routing library functions
  KVM: selftests: aarch64: Add test_inject_fail to vgic_irq
  KVM: selftests: aarch64: Add tests for LEVEL_INFO in vgic_irq
  KVM: selftests: aarch64: Level-sensitive interrupts tests in vgic_irq
  KVM: selftests: aarch64: Add preemption tests in vgic_irq
  KVM: selftests: aarch64: Cmdline arg to set EOI mode in vgic_irq
  KVM: selftests: aarch64: Cmdline arg to set number of IRQs in vgic_irq test
  KVM: selftests: aarch64: Abstract the injection functions in vgic_irq
  KVM: selftests: aarch64: Add vgic_irq to test userspace IRQ injection
  KVM: selftests: aarch64: Add vGIC library functions to deal with vIRQ state
  KVM: selftests: Add kvm_irq_line library function
  KVM: selftests: aarch64: Add GICv3 register accessor library functions
  KVM: selftests: aarch64: Add function for accessing GICv3 dist and redist registers
  KVM: selftests: aarch64: Move gic_v3.h to shared headers

Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: aarch64: Add test_inject_fail to vgic_irq</title>
<updated>2021-12-28T19:24:41Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2021-11-09T02:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90f50acac9ee9f81192098c22b2cbf2491a40263'/>
<id>urn:sha1:90f50acac9ee9f81192098c22b2cbf2491a40263</id>
<content type='text'>
Add tests for failed injections to vgic_irq. This tests that KVM can
handle bogus IRQ numbers.

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Acked-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20211109023906.1091208-14-ricarkol@google.com
</content>
</entry>
<entry>
<title>KVM: selftests: aarch64: Cmdline arg to set number of IRQs in vgic_irq test</title>
<updated>2021-12-28T19:24:06Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2021-11-09T02:38:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e5410ee2806d74a749fa39ca6fdb73be2f88611f'/>
<id>urn:sha1:e5410ee2806d74a749fa39ca6fdb73be2f88611f</id>
<content type='text'>
Add the ability to specify the number of vIRQs exposed by KVM (arg
defaults to 64). Then extend the KVM_IRQ_LINE test by injecting all
available SPIs at once (specified by the nr-irqs arg). As a bonus,
inject all SGIs at once as well.

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Acked-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20211109023906.1091208-9-ricarkol@google.com
</content>
</entry>
<entry>
<title>KVM: selftests: aarch64: Add vGIC library functions to deal with vIRQ state</title>
<updated>2021-12-28T19:23:35Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2021-11-09T02:38:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e95def3a904dea467309bbe382a9032d301ba9cd'/>
<id>urn:sha1:e95def3a904dea467309bbe382a9032d301ba9cd</id>
<content type='text'>
Add a set of library functions for userspace code in selftests to deal
with vIRQ state (i.e., ioctl wrappers).

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Acked-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20211109023906.1091208-6-ricarkol@google.com
</content>
</entry>
<entry>
<title>KVM: selftests: aarch64: Add GICv3 register accessor library functions</title>
<updated>2021-12-28T19:23:13Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2021-11-09T02:38:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17ce617bf76a7c1d3b553ed01607706434b9ed59'/>
<id>urn:sha1:17ce617bf76a7c1d3b553ed01607706434b9ed59</id>
<content type='text'>
Add library functions for accessing GICv3 registers: DIR, PMR, CTLR,
ISACTIVER, ISPENDR.

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Acked-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20211109023906.1091208-4-ricarkol@google.com
</content>
</entry>
<entry>
<title>KVM: selftests: aarch64: Add function for accessing GICv3 dist and redist registers</title>
<updated>2021-12-28T19:23:07Z</updated>
<author>
<name>Ricardo Koller</name>
</author>
<published>2021-11-09T02:38:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=745068367ccbf33d69cf4acf7b1a3d5478978e8e'/>
<id>urn:sha1:745068367ccbf33d69cf4acf7b1a3d5478978e8e</id>
<content type='text'>
Add a generic library function for reading and writing GICv3 distributor
and redistributor registers. Then adapt some functions to use it; more
will come and use it in the next commit.

Signed-off-by: Ricardo Koller &lt;ricarkol@google.com&gt;
Acked-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Marc Zyngier &lt;maz@kernel.org&gt;
Link: https://lore.kernel.org/r/20211109023906.1091208-3-ricarkol@google.com
</content>
</entry>
</feed>
