diff options
| author | 2021-03-01 12:53:08 +0000 | |
|---|---|---|
| committer | 2021-03-02 14:30:54 -0500 | |
| commit | 7d7c5f76e54131ed05b057103b5278b6b852148b (patch) | |
| tree | 0ecc0c74db28933a287ceeaa02387a7a00d593c1 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | selftests: kvm: Mmap the entire vcpu mmap area (diff) | |
| download | linux-dev-7d7c5f76e54131ed05b057103b5278b6b852148b.tar.xz linux-dev-7d7c5f76e54131ed05b057103b5278b6b852148b.zip | |
KVM: x86/xen: Fix return code when clearing vcpu_info and vcpu_time_info
When clearing the per-vCPU shared regions, set the return value to zero
to indicate success. This was causing spurious errors to be returned to
userspace on soft reset.
Also add a paranoid BUILD_BUG_ON() for compat structure compatibility.
Fixes: 0c165b3c01fe ("KVM: x86/xen: Allow reset of Xen attributes")
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Message-Id: <20210301125309.874953-1-dwmw2@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
