From: Gleb Natapov <gleb@redhat.com>
To: "Hao, Xudong" <xudong.hao@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: VT-d regression issue
Date: Thu, 22 Jul 2010 14:25:03 +0300 [thread overview]
Message-ID: <20100722112503.GB25915@redhat.com> (raw)
In-Reply-To: <BC00F5384FCFC9499AF06F92E8B78A9E093143D145@shsmsx502.ccr.corp.intel.com>
On Thu, Jul 22, 2010 at 07:11:34PM +0800, Hao, Xudong wrote:
> Gleb,
> This patch does not work either, qemu stoped @ Starting Seabios.
>
And this one?
diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 2bba22f..b7e7dc0 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -238,9 +238,10 @@ static void assigned_dev_iomem_map_slow(PCIDevice *pci_dev, int region_num,
DEBUG("%s", "slow map\n");
if (region_num == PCI_ROM_SLOT)
m = cpu_register_io_memory(slow_bar_read, NULL, region);
- else
+ else {
m = cpu_register_io_memory(slow_bar_read, slow_bar_write, region);
- cpu_register_physical_memory(e_phys, e_size, m);
+ cpu_register_physical_memory(e_phys, e_size, m);
+ }
/* MSI-X MMIO page */
if ((e_size > 0) &&
@@ -272,7 +273,8 @@ static void assigned_dev_iomem_map(PCIDevice *pci_dev, int region_num,
if (region_num == PCI_ROM_SLOT)
flags |= IO_MEM_ROM;
- cpu_register_physical_memory(e_phys, e_size, region->memory_index | flags);
+ if (region_num != PCI_ROM_SLOT)
+ cpu_register_physical_memory(e_phys, e_size, region->memory_index | flags);
/* deal with MSI-X MMIO page */
if (real_region->base_addr <= r_dev->msix_table_addr &&
--
Gleb.
next prev parent reply other threads:[~2010-07-22 11:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 7:57 VT-d regression issue Hao, Xudong
2010-07-22 8:21 ` Gleb Natapov
2010-07-22 8:47 ` Hao, Xudong
2010-07-22 8:52 ` Gleb Natapov
2010-07-22 11:09 ` Hao, Xudong
2010-07-22 11:10 ` Gleb Natapov
2010-07-22 11:12 ` Hao, Xudong
2010-07-22 11:11 ` Hao, Xudong
2010-07-22 11:25 ` Gleb Natapov [this message]
2010-07-22 12:32 ` Hao, Xudong
2010-07-22 13:03 ` Gleb Natapov
2010-07-30 19:46 ` Alex Williamson
2010-07-31 8:33 ` Hao, Xudong
2010-07-31 16:53 ` Alex Williamson
2010-08-02 0:52 ` Hao, Xudong
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=20100722112503.GB25915@redhat.com \
--to=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=xudong.hao@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