lkml.org 
[lkml]   [2007]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/7] KVM: fix an if() condition
    Date
    From: Adrian Bunk <bunk@stusta.de>

    It might have worked in this case since PT_PRESENT_MASK is 1, but let's
    express this correctly.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    ---
    drivers/kvm/mmu.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
    index 32c64f6..e8e2281 100644
    --- a/drivers/kvm/mmu.c
    +++ b/drivers/kvm/mmu.c
    @@ -1408,7 +1408,7 @@ static void audit_mappings_page(struct kvm_vcpu *vcpu, u64 page_pte,
    for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) {
    u64 ent = pt[i];

    - if (!ent & PT_PRESENT_MASK)
    + if (!(ent & PT_PRESENT_MASK))
    continue;

    va = canonicalize(va);
    --
    1.5.0.6
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-04-29 17:53    [W:4.107 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site