[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V3 2/5] xen: Introduce xen_modified_memory.
From: |
Anthony PERARD |
Subject: |
Re: [Qemu-devel] [PATCH V3 2/5] xen: Introduce xen_modified_memory. |
Date: |
Fri, 21 Sep 2012 15:29:40 +0100 |
On Thu, Sep 20, 2012 at 1:29 PM, Stefano Stabellini
<address@hidden> wrote:
>
>> +void xen_modified_memory(ram_addr_t start, ram_addr_t length)
>> +{
>> + if (unlikely(xen_in_migration)) {
>> + int rc;
>> + ram_addr_t start_pfn, nb_pages;
>> +
>> + if (length == 0) {
>> + length = TARGET_PAGE_SIZE;
>> + }
>> + start_pfn = start >> TARGET_PAGE_BITS;
>> + nb_pages = ((start + length + TARGET_PAGE_SIZE - 1) >>
>> TARGET_PAGE_BITS)
>> + - start_pfn;
>> + rc = xc_hvm_modified_memory(xen_xc, xen_domid, start_pfn, nb_pages);
>> + if (rc) {
>> + fprintf(stderr, "%s failed for "RAM_ADDR_FMT" ("RAM_ADDR_FMT
>> + "): %i, %s\n", __func__,
>> + start, nb_pages, rc, strerror(-rc));
>
> a would prefer a more sane way of splitting this sentence in lines
Will do.
--
Anthony PERARD
- [Qemu-devel] [PATCH V3 0/5] Xen, introducing dirty log for migration., Anthony PERARD, 2012/09/20
- [Qemu-devel] [PATCH V3 4/5] exec, memory: Call to xen_modified_memory., Anthony PERARD, 2012/09/20
- [Qemu-devel] [PATCH V3 2/5] xen: Introduce xen_modified_memory., Anthony PERARD, 2012/09/20
- [Qemu-devel] [PATCH V3 5/5] xen: Set the vram dirty when an error occur., Anthony PERARD, 2012/09/20
- [Qemu-devel] [PATCH V3 1/5] QMP, Introduce xen-set-global-dirty-log command., Anthony PERARD, 2012/09/20
- [Qemu-devel] [PATCH V3 3/5] exec: Introduce helper to set dirty flags., Anthony PERARD, 2012/09/20