<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/kvm/include/kvm_util.h, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-11-08T11:03:36Z</updated>
<entry>
<title>KVM: selftests: Drop pointless vm_create wrapper</title>
<updated>2020-11-08T11:03:36Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-11-04T21:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f663132d1e09166db419afb9832d463e0a79f3d5'/>
<id>urn:sha1:f663132d1e09166db419afb9832d463e0a79f3d5</id>
<content type='text'>
Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Message-Id: &lt;20201104212357.171559-3-drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add aarch64 get-reg-list test</title>
<updated>2020-11-08T11:02:45Z</updated>
<author>
<name>Andrew Jones</name>
</author>
<published>2020-10-29T20:17:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd02029a9e019e941835e110651486e2d77d3f84'/>
<id>urn:sha1:fd02029a9e019e941835e110651486e2d77d3f84</id>
<content type='text'>
Check for KVM_GET_REG_LIST regressions. The blessed list was
created by running on v4.15 with the --core-reg-fixup option.
The following script was also used in order to annotate system
registers with their names when possible. When new system
registers are added the names can just be added manually using
the same grep.

while read reg; do
	if [[ ! $reg =~ ARM64_SYS_REG ]]; then
		printf "\t$reg\n"
		continue
	fi
	encoding=$(echo "$reg" | sed "s/ARM64_SYS_REG(//;s/),//")
	if ! name=$(grep "$encoding" ../../../../arch/arm64/include/asm/sysreg.h); then
		printf "\t$reg\n"
		continue
	fi
	name=$(echo "$name" | sed "s/.*SYS_//;s/[\t ]*sys_reg($encoding)$//")
	printf "\t$reg\t/* $name */\n"
done &lt; &lt;(aarch64/get-reg-list --core-reg-fixup --list)

Signed-off-by: Andrew Jones &lt;drjones@redhat.com&gt;
Message-Id: &lt;20201029201703.102716-3-drjones@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: test enforcement of paravirtual cpuid features</title>
<updated>2020-11-08T11:02:16Z</updated>
<author>
<name>Oliver Upton</name>
</author>
<published>2020-10-27T23:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac4a4d6de22e674cd6e3fe57199a15383496aad2'/>
<id>urn:sha1:ac4a4d6de22e674cd6e3fe57199a15383496aad2</id>
<content type='text'>
Add a set of tests that ensure the guest cannot access paravirtual msrs
and hypercalls that have been disabled in the KVM_CPUID_FEATURES leaf.
Expect a #GP in the case of msr accesses and -KVM_ENOSYS from
hypercalls.

Cc: Jim Mattson &lt;jmattson@google.com&gt;
Signed-off-by: Oliver Upton &lt;oupton@google.com&gt;
Reviewed-by: Peter Shier &lt;pshier@google.com&gt;
Reviewed-by: Aaron Lewis &lt;aaronlewis@google.com&gt;
Message-Id: &lt;20201027231044.655110-7-oupton@google.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: Add exception handling to selftests</title>
<updated>2020-11-08T11:02:15Z</updated>
<author>
<name>Aaron Lewis</name>
</author>
<published>2020-10-12T19:47:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29faeb9632012d6c3fa4aa33c3d589b9ff18b206'/>
<id>urn:sha1:29faeb9632012d6c3fa4aa33c3d589b9ff18b206</id>
<content type='text'>
Add the infrastructure needed to enable exception handling in selftests.
This allows any of the exception and interrupt vectors to be overridden
in the guest.

Signed-off-by: Aaron Lewis &lt;aaronlewis@google.com&gt;
Reviewed-by: Alexander Graf &lt;graf@amazon.com&gt;
Message-Id: &lt;20201012194716.3950330-4-aaronlewis@google.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: VMX preemption timer migration test</title>
<updated>2020-06-01T08:26:10Z</updated>
<author>
<name>Makarand Sonare</name>
</author>
<published>2020-05-26T21:51:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8d7fbf01f9afc9ea1381de705013aa3ca453009f'/>
<id>urn:sha1:8d7fbf01f9afc9ea1381de705013aa3ca453009f</id>
<content type='text'>
When a nested VM with a VMX-preemption timer is migrated, verify that the
nested VM and its parent VM observe the VMX-preemption timer exit close to
the original expiration deadline.

Signed-off-by: Makarand Sonare &lt;makarandsonare@google.com&gt;
Reviewed-by: Jim Mattson &lt;jmattson@google.com&gt;
Message-Id: &lt;20200526215107.205814-3-makarandsonare@google.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kvm-amd-fixes' into HEAD</title>
<updated>2020-05-13T16:14:05Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-05-13T16:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4aef2ec9022b217f74d0f4c9b84081f07cc223d9'/>
<id>urn:sha1:4aef2ec9022b217f74d0f4c9b84081f07cc223d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>KVM: selftests: Add KVM_SET_GUEST_DEBUG test</title>
<updated>2020-05-07T10:13:42Z</updated>
<author>
<name>Peter Xu</name>
</author>
<published>2020-05-05T20:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=449aa906e67e57636086967bf0edc1328fd0ca9f'/>
<id>urn:sha1:449aa906e67e57636086967bf0edc1328fd0ca9f</id>
<content type='text'>
Covers fundamental tests for KVM_SET_GUEST_DEBUG. It is very close to the debug
test in kvm-unit-test, but doing it from outside the guest.

Signed-off-by: Peter Xu &lt;peterx@redhat.com&gt;
Message-Id: &lt;20200505205000.188252-4-peterx@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: Add vm_get_fd() in kvm_util</title>
<updated>2020-04-15T16:08:44Z</updated>
<author>
<name>Wainer dos Santos Moschetta</name>
</author>
<published>2020-04-10T23:17:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cd94d125df531f9f569478eb3e025f08bc180f2'/>
<id>urn:sha1:4cd94d125df531f9f569478eb3e025f08bc180f2</id>
<content type='text'>
Introduces the vm_get_fd() function in kvm_util which returns
the VM file descriptor.

Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Signed-off-by: Wainer dos Santos Moschetta &lt;wainersm@redhat.com&gt;
Signed-off-by: Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;
Message-Id: &lt;20200410231707.7128-8-sean.j.christopherson@intel.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add GUEST_ASSERT variants to pass values to host</title>
<updated>2020-04-15T16:08:43Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2020-04-10T23:17:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e6b94126784fd5b0e781f2e8e980948ee945195'/>
<id>urn:sha1:3e6b94126784fd5b0e781f2e8e980948ee945195</id>
<content type='text'>
Add variants of GUEST_ASSERT to pass values back to the host, e.g. to
help debug/understand a failure when the the cause of the assert isn't
necessarily binary.

It'd probably be possible to auto-calculate the number of arguments and
just have a single GUEST_ASSERT, but there are a limited number of
variants and silently eating arguments could lead to subtle code bugs.

Signed-off-by: Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;
Message-Id: &lt;20200410231707.7128-5-sean.j.christopherson@intel.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add util to delete memory region</title>
<updated>2020-04-15T16:08:42Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2020-04-10T23:17:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c996e4dae177e6921fe61d20b1f30fc06a3d275'/>
<id>urn:sha1:8c996e4dae177e6921fe61d20b1f30fc06a3d275</id>
<content type='text'>
Add a utility to delete a memory region, it will be used by x86's
set_memory_region_test.

Signed-off-by: Sean Christopherson &lt;sean.j.christopherson@intel.com&gt;
Reviewed-by: Wainer dos Santos Moschetta &lt;wainersm@redhat.com&gt;
Reviewed-by: Andrew Jones &lt;drjones@redhat.com&gt;
Message-Id: &lt;20200410231707.7128-4-sean.j.christopherson@intel.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
