search for: abspages

Displaying 4 results from an estimated 4 matches for "abspages".

2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...unlock(&v->plist_lock); + return r; +} + +#define MAX_BALLOON_PAGES_PER_OP (BALLOON_DATA_SIZE/sizeof(u32)) \ + - sizeof(int32_t) +#define MAX_BALLOON_XFLATE_OP 1000000 + +static int kvm_balloon_xflate(struct virtballoon *v, int32_t npages) +{ + int r = -EINVAL, i; + int iterations; + int abspages; + int curr_pages = 0; + int gfns_per_buf; + + abspages = abs(npages); + + if (abspages > MAX_BALLOON_XFLATE_OP) { + dev_printk(KERN_ERR, &v->vdev->dev, + "%s: bad npages=%d\n", __func__, npages); + return -EINVAL; + } + + dprintk(&v->vdev->dev, "%s: got...
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...unlock(&v->plist_lock); + return r; +} + +#define MAX_BALLOON_PAGES_PER_OP (BALLOON_DATA_SIZE/sizeof(u32)) \ + - sizeof(int32_t) +#define MAX_BALLOON_XFLATE_OP 1000000 + +static int kvm_balloon_xflate(struct virtballoon *v, int32_t npages) +{ + int r = -EINVAL, i; + int iterations; + int abspages; + int curr_pages = 0; + int gfns_per_buf; + + abspages = abs(npages); + + if (abspages > MAX_BALLOON_XFLATE_OP) { + dev_printk(KERN_ERR, &v->vdev->dev, + "%s: bad npages=%d\n", __func__, npages); + return -EINVAL; + } + + dprintk(&v->vdev->dev, "%s: got...
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...lloon_plist); + spin_unlock(&balloon_plist_lock); + return r; +} + +#define MAX_BALLOON_PAGES_PER_OP (BALLOON_DATA_SIZE/sizeof(u32)) \ + - sizeof(int32_t) +#define MAX_BALLOON_XFLATE_OP 1000000 + +static int kvm_balloon_xflate(int32_t npages) +{ + int r = -EINVAL, i; + int iterations; + int abspages; + int curr_pages = 0; + int gfns_per_buf; + + abspages = abs(npages); + + if (abspages > MAX_BALLOON_XFLATE_OP) { + printk("%s: bad npages=%d\n", __func__, + npages); + return -EINVAL; + } + + dprintk("%s: got %s, npages=%d\n", __FUNCTION__, + (npages > 0)? &qu...
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...lloon_plist); + spin_unlock(&balloon_plist_lock); + return r; +} + +#define MAX_BALLOON_PAGES_PER_OP (BALLOON_DATA_SIZE/sizeof(u32)) \ + - sizeof(int32_t) +#define MAX_BALLOON_XFLATE_OP 1000000 + +static int kvm_balloon_xflate(int32_t npages) +{ + int r = -EINVAL, i; + int iterations; + int abspages; + int curr_pages = 0; + int gfns_per_buf; + + abspages = abs(npages); + + if (abspages > MAX_BALLOON_XFLATE_OP) { + printk("%s: bad npages=%d\n", __func__, + npages); + return -EINVAL; + } + + dprintk("%s: got %s, npages=%d\n", __FUNCTION__, + (npages > 0)? &qu...