Displaying 2 results from an estimated 2 matches for "req_npages".
Did you mean:
req_n_pages
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...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);
+
+ for (i = 0; i < npages; i++, curr_pfn...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...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);
+
+ for (i = 0; i < npages; i++, curr_pfn...