Am Mittwoch, 11. Juni 2008 schrieb Oliver Paukstadt:
> 00 01213216145:212946 3 - 03 000003e0004e9a36 vm created
> 00 01213216145:213593 3 - 00 000003e0004e90d8 create cpu 0 at
> 000000001ca46400, sie block at 000000001faf9000
> 00 01213216145:237824 2 - 00 000003e0004e9dcc
> 00[0000000180000000-0000000000010000]: unhandled validity intercept
> code 61
Ok, I got an idea.
Does that patch fix the handle_should_not_happen PANIC?
---
arch/s390/kvm/kvm-s390.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: kvm/arch/s390/kvm/kvm-s390.c
===================================================================
--- kvm.orig/arch/s390/kvm/kvm-s390.c
+++ kvm/arch/s390/kvm/kvm-s390.c
@@ -250,10 +250,13 @@ static void kvm_s390_vcpu_initial_reset(
vcpu->arch.sie_block->gbea = 1;
}
+/* some random value for testing */
+#define VIRTIODESCSPACE (100ul*1024ul*1024ul)
+
int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu)
{
atomic_set(&vcpu->arch.sie_block->cpuflags, CPUSTAT_ZARCH);
- vcpu->arch.sie_block->gmslm = 0xffffffffffUL;
+ vcpu->arch.sie_block->gmslm = vcpu->kvm->arch.guest_memsize +
VIRTIODESCSPACE -1;
vcpu->arch.sie_block->gmsor = vcpu->kvm->arch.guest_origin;
vcpu->arch.sie_block->ecb = 2;
vcpu->arch.sie_block->eca = 0xC1002001U;
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html