lkml.org 
[lkml]   [2009]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 012/108] KVM: Fix dirty bit tracking for slots with large pages
    2.6.30-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Izik Eidus <ieidus@redhat.com>

    commit e244584fe3a5c20deddeca246548ac86dbc6e1d1 upstream.

    When slot is already allocated and being asked to be tracked we need
    to break the large pages.

    This code flush the mmu when someone ask a slot to start dirty bit
    tracking.

    Signed-off-by: Izik Eidus <ieidus@redhat.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    virt/kvm/kvm_main.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/virt/kvm/kvm_main.c
    +++ b/virt/kvm/kvm_main.c
    @@ -1030,6 +1030,8 @@ int __kvm_set_memory_region(struct kvm *
    if (!new.dirty_bitmap)
    goto out_free;
    memset(new.dirty_bitmap, 0, dirty_bytes);
    + if (old.npages)
    + kvm_arch_flush_shadow(kvm);
    }
    #endif /* not defined CONFIG_S390 */




    \
     
     \ /
      Last update: 2009-07-01 03:03    [W:0.019 / U:32.152 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site