qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]