|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Qemu-devel] [PATCH V3 2/5] xen: Introduce xen_modified_memory.
On Thu, Sep 20, 2012 at 1:29 PM, Stefano Stabellini
<stefano.stabellini@xxxxxxxxxxxxx> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |