]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selftests: kvm: Fix the segment descriptor layout to match the actual layout
authorAaron Lewis <aaronlewis@google.com>
Mon, 12 Oct 2020 19:47:13 +0000 (12:47 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:24:10 +0000 (14:24 +0100)
commit16c789b0cda27521043136b236b4a02ebd1ab684
tree47bd3396a3da031c3a6a38d248c7bba7774e5288
parent3f631c5abf1b2c148ea21afb429377d12cc923d8
selftests: kvm: Fix the segment descriptor layout to match the actual layout

BugLink: https://bugs.launchpad.net/bugs/1908561
[ Upstream commit df11f7dd5834146defa448acba097e8d7703cc42 ]

Fix the layout of 'struct desc64' to match the layout described in the
SDM Vol 3, Chapter 3 "Protected-Mode Memory Management", section 3.4.5
"Segment Descriptors", Figure 3-8 "Segment Descriptor".  The test added
later in this series relies on this and crashes if this layout is not
correct.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Message-Id: <20201012194716.3950330-2-aaronlewis@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/x86_64/processor.c