]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] kvm_s390: Fix oops in virtio device detection with "mem="
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 14 Nov 2008 17:18:02 +0000 (18:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 14 Nov 2008 17:18:52 +0000 (18:18 +0100)
commit725cd81f76aac20754530d7f3ff7103c099b96bf
tree6b416046f989877926db0457cfc80e9805fc5c7e
parentd5e2bca10ec2dfb34813bd2ee3be1bd7fa165efb
[S390] kvm_s390: Fix oops in virtio device detection with "mem="

The current virtio model on s390 has the descriptor page above the main
memory. The guest virtio detection will oops if the mem= parameter is
used to reduce/change the memory size.
We have to use real_memory_size instead of max_pfn to detect the virtio
descriptor pages.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
drivers/s390/kvm/kvm_virtio.c