qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Alexander Graf <agraf@csgraf.de>, Cameron Esfahani <dirty@apple.com>
Cc: Roman Bolshakov <r.bolshakov@yadro.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH] hvf: Avoid mapping regions < PAGE_SIZE as ram
Date: Tue, 26 Oct 2021 18:34:05 +0200	[thread overview]
Message-ID: <af0511ea-1322-76d5-a3c6-bcfc577c4987@redhat.com> (raw)
In-Reply-To: <a19cfe8f-a013-b2da-7893-50d7c1ecfecd@csgraf.de>

On 25/10/21 21:10, Alexander Graf wrote:
>>>           }
>>>       }
>>>   +    if (int128_get64(section->size) & (qemu_real_host_page_size - 
>>> 1) ||
>>> +        section->offset_within_address_space & 
>>> (qemu_real_host_page_size - 1)) {
>>> +        /* Not page aligned, so we can not map as RAM */
>>> +        add = false;
>>> +    }
>>> +
>>>       mem = hvf_find_overlap_slot(
>>>               section->offset_within_address_space,
>>>               int128_get64(section->size));
>>>
>>
>> Queued, thanks.
> 
> 
> You probably want v2 instead :)

That's actually what I had applied. :)

Paolo



      reply	other threads:[~2021-10-26 16:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25  8:25 [PATCH] hvf: Avoid mapping regions < PAGE_SIZE as ram Alexander Graf
2021-10-25 10:56 ` Philippe Mathieu-Daudé
2021-10-25 17:11 ` Paolo Bonzini
2021-10-25 19:10   ` Alexander Graf
2021-10-26 16:34     ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af0511ea-1322-76d5-a3c6-bcfc577c4987@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=agraf@csgraf.de \
    --cc=dirty@apple.com \
    --cc=qemu-devel@nongnu.org \
    --cc=r.bolshakov@yadro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).