lkml.org 
[lkml]   [2012]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [RFC PATCH 00/18] KVM: x86: CPU isolation and direct interrupts handling by guests
    Hello,

    There were some missing pieces for trying this patch series.

    Firstly, the patch is for v3.5-rc4, but that version has an issue
    that it cannot passthrough PCI devices because of genirq changes.
    A patch to avoid this issue is available at
    https://lkml.org/lkml/2012/6/1/261 .

    Secondly, to successfully build the patched qemu-kvm, you need the
    following additional definitions to qemu-kvm's header files for KVM.

    diff -u -r qemu-kvm-0.15.1/linux-headers/linux/kvm.h qemu-kvm-0.15.1-test/linux-headers/linux/kvm.h
    --- qemu-kvm-0.15.1/linux-headers/linux/kvm.h 2011-10-19 22:54:48.000000000 +0900
    +++ qemu-kvm-0.15.1-test/linux-headers/linux/kvm.h 2012-06-25 21:21:20.273488167 +0900
    @@ -544,6 +544,7 @@
    #define KVM_CAP_TSC_CONTROL 60
    #define KVM_CAP_GET_TSC_KHZ 61
    #define KVM_CAP_PPC_BOOKE_SREGS 62
    +#define KVM_CAP_SLAVE_CPU 80

    #ifdef KVM_CAP_IRQ_ROUTING

    @@ -746,6 +747,9 @@
    /* Available with KVM_CAP_XCRS */
    #define KVM_GET_XCRS _IOR(KVMIO, 0xa6, struct kvm_xcrs)
    #define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
    +/* Available with KVM_CAP_SLAVE_CPU */
    +#define KVM_GET_SLAVE_CPU _IO(KVMIO, 0xae)
    +#define KVM_SET_SLAVE_CPU _IO(KVMIO, 0xaf)

    #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)


    Thanks,
    --
    Tomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com>
    Linux Technology Center
    Hitachi, Ltd., Yokohama Research Laboratory



    \
     
     \ /
      Last update: 2012-07-04 12:21    [W:0.027 / U:0.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site