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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Mar 2013 03:22:34 +0000 (03:22 +0000)
commit99aee84b407aeab44e12ef46b5698a654d6552de
tree28298220b9959fd7272311d759dd5993365c9974
parent9771304decd27e25593b1c3f6cd80a91c1c8f219
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: Ben Hutchings <ben@decadent.org.uk>
drivers/s390/kvm/kvm_virtio.c