All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yang, Sheng" <sheng.yang@intel.com>
To: kvm@vger.kernel.org
Cc: Ben-Ami Yassour <benami@il.ibm.com>,
	avi@qumranet.com, amit.shah@qumranet.com, muli@il.ibm.com,
	weidong.han@intel.com, anthony@codemonkey.ws, "Kay,
	Allen M" <allen.m.kay@intel.com>
Subject: Re: [PATCH 5/5] This patch extends the VT-d driver to support KVM
Date: Tue, 5 Aug 2008 14:01:42 +0800	[thread overview]
Message-ID: <200808051401.43106.sheng.yang@intel.com> (raw)
In-Reply-To: <1217262388-7309-6-git-send-email-benami@il.ibm.com>

On Tuesday 29 July 2008 00:26:28 Ben-Ami Yassour wrote:
> [Ben: fixed memory pinning]
>
>  	kvm_free_physmem_slot(&old, &new);
> +
> +	/* map the pages in iommu page table */
> +	if (intel_iommu_found())
> +		kvm_iommu_map_pages(kvm, base_gfn, npages);
> +

Realize one serious problem here: this line pinned all memory 
regardless of if VT-d device have been assigned. That's means if VT-d 
engine is there(even without assigned device), KVM would pin all 
memory, then disable swapping capability. It's very undesired... I 
don't know if Avi aware of that.

I think we should check assigned device list here to avoid this kind 
of thing happen. Also, we may need a lock here to prevent racy with 
assign_device().

--
regards
Yang, Sheng

  parent reply	other threads:[~2008-08-05  5:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 16:26 Device assignemnt: updated patches Ben-Ami Yassour
2008-07-28 16:26 ` [PATCH 1/5] KVM: PCIPT: direct mmio pfn check Ben-Ami Yassour
2008-07-28 16:26   ` [PATCH 2/5] KVM: Add irq ack notifier list Ben-Ami Yassour
2008-07-28 16:26     ` [PATCH 3/5] KVM: pci device assignment Ben-Ami Yassour
2008-07-28 16:26       ` [PATCH 4/5] VT-d: changes to support KVM Ben-Ami Yassour
2008-07-28 16:26         ` [PATCH 5/5] This patch extends the VT-d driver " Ben-Ami Yassour
2008-07-28 16:32           ` Device assignment - userspace part Ben-Ami Yassour
2008-07-28 16:32             ` [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guest Ben-Ami Yassour
2008-08-01  3:09               ` Han, Weidong
2008-08-05  9:41                 ` Ben-Ami Yassour
2008-07-29  7:28           ` [PATCH 5/5] This patch extends the VT-d driver to support KVM Yang, Sheng
2008-08-05  6:01           ` Yang, Sheng [this message]
2008-08-05  9:32             ` Ben-Ami Yassour
2008-08-05 14:46           ` Han, Weidong
2008-08-06  5:50             ` Ben-Ami Yassour
2008-08-06  6:18               ` Han, Weidong
2008-08-06  8:56                 ` Ben-Ami Yassour
2008-08-06  9:12                   ` Han, Weidong
2008-08-06  9:42                     ` Ben-Ami Yassour
2008-08-07  1:21                       ` Han, Weidong
2008-08-07 10:35                         ` Ben-Ami Yassour
2008-08-12  3:29                           ` Han, Weidong
2008-07-29  9:19       ` [PATCH 3/5] KVM: pci device assignment Amit Shah
2008-07-29  9:38         ` Ben-Ami Yassour
2008-07-29 14:02           ` Avi Kivity
2008-07-30  6:00             ` Amit Shah
2008-07-30  6:03           ` Amit Shah
2008-07-30 11:58             ` Ben-Ami Yassour
2008-08-01 11:24               ` Amit Shah
2008-07-29 12:27       ` Ben-Ami Yassour
2008-07-29  7:14     ` [PATCH 2/5] KVM: Add irq ack notifier list Yang, Sheng
2008-07-29  9:34       ` Amit Shah
2008-07-29  9:56         ` Yang, Sheng
2008-07-30  5:54           ` Amit Shah
2008-07-31  8:55             ` Avi Kivity
2008-07-30 15:21 ` Device assignemnt: updated patches Avi Kivity

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=200808051401.43106.sheng.yang@intel.com \
    --to=sheng.yang@intel.com \
    --cc=allen.m.kay@intel.com \
    --cc=amit.shah@qumranet.com \
    --cc=anthony@codemonkey.ws \
    --cc=avi@qumranet.com \
    --cc=benami@il.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=muli@il.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.