* [RFC] [VTD][patch 2/3] vt-d support for pci passthrough: kvm-vtd-user.patch
@ 2008-05-05 21:37 Kay, Allen M
2008-05-06 10:36 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Kay, Allen M @ 2008-05-05 21:37 UTC (permalink / raw)
To: kvm-devel; +Cc: Chris Wright, Avi Kivity, Ben-Ami Yassour1
Kvm-user-mode patch. Still todo: move vt.d to kvm-intel.ko module.
Signed-off-by: Allen M Kay <allen.m.kay@intel.com>
-----
Kbuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-----
diff --git a/kernel/Kbuild b/kernel/Kbuild
index e3e97ab..7455605 100644
--- a/kernel/Kbuild
+++ b/kernel/Kbuild
@@ -1,7 +1,7 @@
EXTRA_CFLAGS := -I$(src)/include -include
$(src)/external-module-compat.h
obj-m := kvm.o kvm-intel.o kvm-amd.o
kvm-objs := kvm_main.o x86.o mmu.o x86_emulate.o anon_inodes.o irq.o
i8259.o \
- lapic.o ioapic.o preempt.o i8254.o
+ lapic.o ioapic.o preempt.o i8254.o vtd.o
ifeq ($(CONFIG_KVM_TRACE),y)
kvm-objs += kvm_trace.o
endif
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC] [VTD][patch 2/3] vt-d support for pci passthrough: kvm-vtd-user.patch
2008-05-05 21:37 [RFC] [VTD][patch 2/3] vt-d support for pci passthrough: kvm-vtd-user.patch Kay, Allen M
@ 2008-05-06 10:36 ` Avi Kivity
2008-05-07 0:39 ` Anthony Liguori
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2008-05-06 10:36 UTC (permalink / raw)
To: Kay, Allen M; +Cc: Chris Wright, kvm-devel, Ben-Ami Yassour1
Kay, Allen M wrote:
> Still todo: move vt.d to kvm-intel.ko module.
>
Not sure it's the right thing to do. If we get the iommus abstracted
properly, we can rename vtd.c to dma.c and move it to virt/kvm/.
The code is certainly a lot more about managing memory than anything vmx
specific. It's hardly x86 specific, even.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] [VTD][patch 2/3] vt-d support for pci passthrough: kvm-vtd-user.patch
2008-05-06 10:36 ` Avi Kivity
@ 2008-05-07 0:39 ` Anthony Liguori
0 siblings, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2008-05-07 0:39 UTC (permalink / raw)
To: Avi Kivity; +Cc: Chris Wright, kvm-devel, Kay, Allen M, Ben-Ami Yassour1
Avi Kivity wrote:
> Kay, Allen M wrote:
>
>> Still todo: move vt.d to kvm-intel.ko module.
>>
>>
>
> Not sure it's the right thing to do. If we get the iommus abstracted
> properly, we can rename vtd.c to dma.c and move it to virt/kvm/.
>
> The code is certainly a lot more about managing memory than anything vmx
> specific. It's hardly x86 specific, even.
>
Really, an external interface to KVM that allowed someone to query the
GPA => PA mapping would suffice. It should not fault in pages that
aren't present and we should provide notifications for when the mapping
changes for a given reason. Userspace can enforce the requirement that
memory remains present via mlock(). This allows us to implement a PV
API for DMA registration without the IOMMU code having any particular
knowledge of it.
Regards,
Anthony Liguori
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-07 0:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 21:37 [RFC] [VTD][patch 2/3] vt-d support for pci passthrough: kvm-vtd-user.patch Kay, Allen M
2008-05-06 10:36 ` Avi Kivity
2008-05-07 0:39 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox