OSDN Git Service

target/i386: sev: Remove redundant handle field
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 4 Jun 2020 06:42:18 +0000 (16:42 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jun 2020 15:20:14 +0000 (11:20 -0400)
commitcf504cd67b26ded2e25eb8f33b5ebec031b31def
tree8431332dc050d7a50a1e5f6d13481fa1e7a87652
parent0bd1527774fc17985f47df41b95f31b00b162129
target/i386: sev: Remove redundant handle field

The user can explicitly specify a handle via the "handle" property wired
to SevGuestState::handle.  That gets passed to the KVM_SEV_LAUNCH_START
ioctl() which may update it, the final value being copied back to both
SevGuestState::handle and SEVState::handle.

AFAICT, nothing will be looking SEVState::handle before it and
SevGuestState::handle have been updated from the ioctl().  So, remove the
field and just use SevGuestState::handle directly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200604064219.436242-9-david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c