]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: s390: Handle hosts not supporting s390-virtio.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 14 Dec 2012 16:02:16 +0000 (17:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:31 +0000 (05:38 -0800)
commit92fdb6f158923fb2c45eba5d5548d930c0fe0afe
tree775c33d617e430186da52c69c197b9ccbfc7d63d
parentd6f54cabb268370ccfb66e35a7ba9f0539987a13
KVM: s390: Handle hosts not supporting s390-virtio.

commit 55c171a6d90dc0574021f9c836127cfd1a7d2e30 upstream.

Running under a kvm host does not necessarily imply the presence of
a page mapped above the main memory with the virtio information;
however, the code includes a hard coded access to that page.

Instead, check for the presence of the page and exit gracefully
before we hit an addressing exception if it does not exist.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/kvm/kvm_virtio.c