From: Amit Shah <amit.shah@qumranet.com>
To: "Han, Weidong" <weidong.han@intel.com>
Cc: avi@qumranet.com, kvm@vger.kernel.org, muli@il.ibm.com,
anthony@codemonkey.ws, jbarnes@virtuousgeek.org, "Woodhouse,
David" <david.woodhouse@intel.com>,
"Gross, Mark" <mark.gross@intel.com>,
benami@il.ibm.com, "Kay, Allen M" <allen.m.kay@intel.com>,
"Yang, Sheng" <sheng.yang@intel.com>,
mgross@linux.intel.com
Subject: Re: [PATCH 2/2] KVM: Device Assignment with VT-d
Date: Tue, 9 Sep 2008 20:09:18 +0530 [thread overview]
Message-ID: <200809092009.19658.amit.shah@qumranet.com> (raw)
In-Reply-To: <0122C7C995D32147B66BF4F440D3016301B07EBE@pdsmsx415.ccr.corp.intel.com>
* On Tuesday 09 September 2008 19:21:20 Han, Weidong wrote:
> +static int kvm_iommu_map_memslots(struct kvm *kvm)
> +{
> + int i, rc;
> +
> + down_read(&kvm->slots_lock);
> + for (i = 0; i < kvm->nmemslots; i++) {
> + rc = kvm_iommu_map_pages(kvm, kvm->memslots[i].base_gfn,
> + kvm->memslots[i].npages);
> + if (rc) {
> + up_read(&kvm->slots_lock);
> + return rc;
> + }
> + }
> + up_read(&kvm->slots_lock);
> + return 0;
> +}
I simplified this to:
static int kvm_iommu_map_memslots(struct kvm *kvm)
{
int i, r;
down_read(&kvm->slots_lock);
for (i = 0; i < kvm->nmemslots; i++) {
r = kvm_iommu_map_pages(kvm, kvm->memslots[i].base_gfn,
kvm->memslots[i].npages);
if (r)
break;
}
up_read(&kvm->slots_lock);
return r;
}
Also cleaned up some whitespace.
I'll send out the patchset soon.
next prev parent reply other threads:[~2008-09-09 14:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-09 13:51 [PATCH 2/2] KVM: Device Assignment with VT-d Han, Weidong
2008-09-09 14:39 ` Amit Shah [this message]
2008-09-09 15:05 ` Han, Weidong
-- strict thread matches above, loose matches on Subject: below --
2008-09-09 15:37 VT-d support for device assignment Amit Shah
2008-09-09 15:37 ` [PATCH 1/2] VT-d: Changes to support KVM Amit Shah
2008-09-09 15:37 ` [PATCH 2/2] KVM: Device Assignment with VT-d Amit Shah
2008-09-11 7:21 ` Han, Weidong
2008-09-14 0:49 ` Avi Kivity
2008-09-09 14:44 VT-d support for device assignment Amit Shah
2008-09-09 14:44 ` [PATCH 1/2] VT-d: Changes to support KVM Amit Shah
2008-09-09 14:44 ` [PATCH 2/2] KVM: Device Assignment with VT-d Amit Shah
2008-08-26 8:55 VT-d support for device assignment Amit Shah
2008-08-26 8:55 ` [PATCH 1/2] VT-d: changes to support KVM Amit Shah
2008-08-26 8:55 ` [PATCH 2/2] KVM: Device Assignment with VT-d Amit Shah
2008-08-26 10:28 ` Zhang, Xiantao
2008-08-26 10:35 ` Amit Shah
2008-08-26 10:42 ` Zhang, Xiantao
2008-08-26 10:57 ` Amit Shah
2008-08-26 11:04 ` Zhang, Xiantao
2008-08-26 14:41 ` Avi Kivity
2008-08-26 15:09 ` Han, Weidong
2008-09-03 16:52 ` Amit Shah
2008-09-09 7:18 ` Han, Weidong
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=200809092009.19658.amit.shah@qumranet.com \
--to=amit.shah@qumranet.com \
--cc=allen.m.kay@intel.com \
--cc=anthony@codemonkey.ws \
--cc=avi@qumranet.com \
--cc=benami@il.ibm.com \
--cc=david.woodhouse@intel.com \
--cc=jbarnes@virtuousgeek.org \
--cc=kvm@vger.kernel.org \
--cc=mark.gross@intel.com \
--cc=mgross@linux.intel.com \
--cc=muli@il.ibm.com \
--cc=sheng.yang@intel.com \
--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