Skip to contentSkip to conversation

s390 kvm and slot 0

DISCUSSION Glauber Costa 2 participants 2 messages Oct 14, 2008 – Oct 15, 2008 KVM

lore
Share & tools
lore
#0 lore raw

Hi Carsten,

libkvm/libkvm.c, in function get_free_slot(), we see:

#if defined(KVM_CAP_SET_TSS_ADDR) && !defined(__s390__)
        tss_ext = ioctl(kvm->fd, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR);
#else
        tss_ext = 0;

#endif

Effectively, because of that (and the check that follows), s390 will not use slot 0. Does it really matters for s390, or is it just a bug?

#1 lore raw

Am Dienstag, 14. Oktober 2008 schrieb Glauber Costa:

Quoted 4 lines

Hi Carsten,

libkvm/libkvm.c, in function get_free_slot(), we see:

Quoted 9 lines
#if defined(KVM_CAP_SET_TSS_ADDR) && !defined(__s390__)
        tss_ext = ioctl(kvm->fd, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR);
#else
        tss_ext = 0;

#endif

Effectively, because of that (and the check that follows), s390 will not use slot 0. Does it really matters for s390, or is it just a bug?

It is a bug.
See
http://marc.info/?l=kvm&m=121751623912841&w=2
for a patch proposal. It was not merged because Avi went on vacation and I did not track this patch because we have not finished our kvm-userspace port anyway.

This patch is still in our repository and we will send a fix whenever we have our userspace port ready.

Christian