]> git.karo-electronics.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 14:32:24 +0000 (06:32 -0800)
commit25adbf9cfa6ea467b681a11219d29c7ff41637c7
tree0cd58d1042b4abe9787eed7f06fb049169e14465
parent8e78002093815336a22ba3e723c1d9d15000d9b5
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