search for: curr_pfn

Displaying 2 results from an estimated 2 matches for "curr_pfn".

Did you mean: cur_pfn
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...perror("madvise"); + fprintf(stderr, "%s: gfn=0x%x is_inflate=%d mlock/madvise: failed\n", + __FUNCTION__, gfn, is_inflate); + } + return r; +} + +int kvm_handle_ballooning_call(void *data, size_t len) +{ + unsigned int gfn; + unsigned int *curr_pfn; + int is_inflate; + int req_npages, npages; + int i, r = 0, saved_r = 0; + + curr_pfn = data; + + req_npages = (int)*curr_pfn++; + + npages = abs(req_npages); + is_inflate = (req_npages > 0); + + if (is_inflate) + kvm_sync_shadow_with_user(kvm_context); + +...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...perror("madvise"); + fprintf(stderr, "%s: gfn=0x%x is_inflate=%d mlock/madvise: failed\n", + __FUNCTION__, gfn, is_inflate); + } + return r; +} + +int kvm_handle_ballooning_call(void *data, size_t len) +{ + unsigned int gfn; + unsigned int *curr_pfn; + int is_inflate; + int req_npages, npages; + int i, r = 0, saved_r = 0; + + curr_pfn = data; + + req_npages = (int)*curr_pfn++; + + npages = abs(req_npages); + is_inflate = (req_npages > 0); + + if (is_inflate) + kvm_sync_shadow_with_user(kvm_context); + +...