From: Sasha Levin <levinsasha928@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: kvm@vger.kernel.org, mst@redhat.com,
virtualization@lists.linux-foundation.org, penberg@kernel.org,
Sasha Levin <levinsasha928@gmail.com>,
mingo@elte.hu
Subject: [RFC 3/5] iomap: Don't ignore offset
Date: Tue, 15 Nov 2011 01:43:15 +0200 [thread overview]
Message-ID: <1321314197-5265-4-git-send-email-levinsasha928@gmail.com> (raw)
In-Reply-To: <1321314197-5265-1-git-send-email-levinsasha928@gmail.com>
Offset was ignored for start calulcations, making all mappings start at
offset 0 always.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
lib/iomap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/iomap.c b/lib/iomap.c
index f28720e..93ae915 100644
--- a/lib/iomap.c
+++ b/lib/iomap.c
@@ -272,6 +272,7 @@ void __iomem *pci_iomap_range(struct pci_dev *dev, int bar,
if (len <= offset || !start)
return NULL;
len -= offset;
+ start += offset;
if (len < minlen)
return NULL;
if (maxlen && len > maxlen)
--
1.7.8.rc1
next prev parent reply other threads:[~2011-11-14 23:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-14 18:18 [PATCHv2 RFC] virtio-pci: flexible configuration layout Michael S. Tsirkin
2011-11-14 23:43 ` [RFC 0/5] virtio-pci, kvm tools: Support new virtio-pci spec in kvm tools Sasha Levin
2011-11-14 23:43 ` [RFC 1/5] virtio-pci: flexible configuration layout Sasha Levin
2011-11-21 1:01 ` Rusty Russell
2011-11-14 23:43 ` [RFC 2/5] virtio-pci: Fix compilation issue Sasha Levin
2011-11-14 23:43 ` Sasha Levin [this message]
2011-11-14 23:43 ` [RFC 4/5] kvm tools: Free up the MSI-X PBA BAR Sasha Levin
2011-11-14 23:43 ` [RFC 5/5] kvm tools: Support new virtio-pci configuration layout Sasha Levin
2011-11-15 12:59 ` [RFC 0/5] virtio-pci,kvm tools: Support new virtio-pci spec in kvm tools Michael S. Tsirkin
2011-12-05 19:16 ` [PATCHv2 RFC] virtio-pci: flexible configuration layout Jesse Barnes
[not found] ` <20111205111605.73b60faa@jbarnes-desktop>
2011-12-05 20:20 ` Michael S. Tsirkin
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=1321314197-5265-4-git-send-email-levinsasha928@gmail.com \
--to=levinsasha928@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mst@redhat.com \
--cc=penberg@kernel.org \
--cc=virtualization@lists.linux-foundation.org \
/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).