]> 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)
committerGleb Natapov <gleb@redhat.com>
Tue, 18 Dec 2012 12:36:38 +0000 (14:36 +0200)
commit55c171a6d90dc0574021f9c836127cfd1a7d2e30
treeb13fae2636784f86aecf148beeb353bc21ac2531
parentd4b06c2d4cce466e2d62163c0a954e1b2ce96f8b
KVM: s390: Handle hosts not supporting s390-virtio.

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>
cc: stable@vger.kernel.org
Signed-off-by: Gleb Natapov <gleb@redhat.com>
drivers/s390/kvm/kvm_virtio.c