Home
last modified time | relevance | path

Searched hist:cf5b486922dc8667234bcaaadda4586b3062a1c0 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/s390/kvm/
H A Dkvm-s390.cdiff cf5b486922dc8667234bcaaadda4586b3062a1c0 Mon Dec 06 13:54:15 CST 2021 Sean Christopherson <seanjc@google.com> KVM: s390: Use "new" memslot instead of userspace memory region

Get the gfn, size, and hva from the new memslot instead of the userspace
memory region when preparing/committing memory region changes. This will
allow a future commit to drop the @mem param.

Note, this has a subtle functional change as KVM would previously reject
DELETE if userspace provided a garbage userspace_addr or guest_phys_addr,
whereas KVM zeros those fields in the "new" memslot when deleting an
existing memslot. Arguably the old behavior is more correct, but there's
zero benefit into requiring userspace to provide sane values for hva and
gfn.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <917ed131c06a4c7b35dd7fb7ed7955be899ad8cc.1638817639.git.maciej.szmigiero@oracle.com>