From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: "Han, Weidong" <weidong.han@intel.com>,
"'kvm@vger.kernel.org'" <kvm@vger.kernel.org>
Subject: Re: [PATCH 1/1] kvm: bios: make MMIO address page aligned in guest
Date: Tue, 24 Feb 2009 14:11:24 -0600 [thread overview]
Message-ID: <49A4546C.2030504@codemonkey.ws> (raw)
In-Reply-To: <49A3CF4C.2010601@redhat.com>
Avi Kivity wrote:
> Han, Weidong wrote:
>> MMIO of some devices are not page aligned, such as some EHCI
>> controllers and virtual Realtek NIC in guest. Current guest
>> bios doesn't guarantee the start address of MMIO page aligned.
>> This may result in failure of device assignment, because KVM
>> only allow to register page aligned memory slots. For example,
>> it fails to assign EHCI controller (its MMIO size is 1KB) with
>> virtual Realtek NIC (its MMIO size is 256Bytes), because MMIO
>> of virtual Realtek NIC in guest starts from 0xf2001000, MMIO of
>> the EHCI controller will starts from 0xf2001400.
>>
>> MMIO addresses in guest are allocated in guest bios. This patch
>> makes MMIO address page aligned in bios, then fixes the issue.
>>
>>
>
> Applied, thanks.
I think this patch could also be sent to upstream QEMU/bochs-devel.
Even though neither supports device assignment right now, QEMU
eventually will and it seems like a sane thing to do anyway.
Regards,
Anthony Liguori
prev parent reply other threads:[~2009-02-24 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-19 9:23 [PATCH 1/1] kvm: bios: make MMIO address page aligned in guest Han, Weidong
2009-02-24 10:43 ` Avi Kivity
2009-02-24 20:11 ` Anthony Liguori [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=49A4546C.2030504@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=weidong.han@intel.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