public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* PCI-passthrough on AMD - OpenVox A400P
@ 2013-04-09 17:58 Daniel Bareiro
  2013-04-09 18:06 ` Alex Williamson
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Bareiro @ 2013-04-09 17:58 UTC (permalink / raw)
  To: KVM General

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]


Hi all!


I've a cluster (active/passive) with two KVM VM with Asterisk and 
Pacemaker+Corosync. I wonder if anyone tried to use a OpenVox A400P 
card from a virtual machine.

My idea is to have both nodes accessing this card. I don't know if it is
possible, I wish that in this scenario when a node is accessing the
card, the other don't use it.

Of course this is a scenario for testing, but I wonder if I can do
this kind of configuration on the cluster over virtual machines.

Hardware:
Motherboard: ASUS M2N32-SLI DELUXE ACPI BIOS Revision 0706
Processor:   AMD Athlon(tm) 64 X2 Dual Core Processor 3800+

The hardware seems to support IOMMU, but it is not enabled:

# dmesg | grep -i iommu
[    0.000000] Please enable the IOMMU option in the BIOS setup
[    0.654618] PCI-DMA: using GART IOMMU.
[    0.654623] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture


Software versions:

# uname -a
Linux ss01 2.6.39-bpo.2-amd64 #1 SMP Thu Aug 4 11:42:06 UTC 2011 x86_64 GNU/Linux

# kvm --version
QEMU emulator version 1.1.2 (qemu-kvm-1.1.2+dfsg-5~bpo60+1, Debian), Copyright (c) 2003-2008 Fabrice Bellard




Thanks in advance for your reply.


Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCI-passthrough on AMD - OpenVox A400P
  2013-04-09 17:58 PCI-passthrough on AMD - OpenVox A400P Daniel Bareiro
@ 2013-04-09 18:06 ` Alex Williamson
  2013-04-14 16:16   ` Daniel Bareiro
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Williamson @ 2013-04-09 18:06 UTC (permalink / raw)
  To: dbareiro; +Cc: KVM General

On Tue, 2013-04-09 at 14:58 -0300, Daniel Bareiro wrote:
> Hi all!
> 
> 
> I've a cluster (active/passive) with two KVM VM with Asterisk and 
> Pacemaker+Corosync. I wonder if anyone tried to use a OpenVox A400P 
> card from a virtual machine.
> 
> My idea is to have both nodes accessing this card. I don't know if it is
> possible, I wish that in this scenario when a node is accessing the
> card, the other don't use it.
> 
> Of course this is a scenario for testing, but I wonder if I can do
> this kind of configuration on the cluster over virtual machines.
> 
> Hardware:
> Motherboard: ASUS M2N32-SLI DELUXE ACPI BIOS Revision 0706
> Processor:   AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
> 
> The hardware seems to support IOMMU, but it is not enabled:
> 
> # dmesg | grep -i iommu
> [    0.000000] Please enable the IOMMU option in the BIOS setup
> [    0.654618] PCI-DMA: using GART IOMMU.
> [    0.654623] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture
> 
> 
> Software versions:
> 
> # uname -a
> Linux ss01 2.6.39-bpo.2-amd64 #1 SMP Thu Aug 4 11:42:06 UTC 2011 x86_64 GNU/Linux
> 
> # kvm --version
> QEMU emulator version 1.1.2 (qemu-kvm-1.1.2+dfsg-5~bpo60+1, Debian), Copyright (c) 2003-2008 Fabrice Bellard
> 
> 
> 
> 
> Thanks in advance for your reply.

AFAIK, Athlon64 does not support AMD-Vi, which is the IOMMU support
you'd need.  PCI passthrough also only works for VMs running on the same
system where the card is installed, and doesn't offer multiplexing of a
single device.  Thanks,

Alex


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCI-passthrough on AMD - OpenVox A400P
  2013-04-09 18:06 ` Alex Williamson
@ 2013-04-14 16:16   ` Daniel Bareiro
  2013-04-14 18:08     ` Daniel Bareiro
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Bareiro @ 2013-04-14 16:16 UTC (permalink / raw)
  To: KVM General

[-- Attachment #1: Type: text/plain, Size: 2542 bytes --]

On Tuesday, 09 April 2013 12:06:25 -0600,
Alex Williamson wrote:

> > I've a cluster (active/passive) with two KVM VM with Asterisk and
> > Pacemaker+Corosync. I wonder if anyone tried to use a OpenVox A400P
> > card from a virtual machine.
> > 
> > My idea is to have both nodes accessing this card. I don't know if
> > it is possible, I wish that in this scenario when a node is
> > accessing the card, the other don't use it.
> > 
> > Of course this is a scenario for testing, but I wonder if I can do
> > this kind of configuration on the cluster over virtual machines.
> > 
> > Hardware:
> > Motherboard: ASUS M2N32-SLI DELUXE ACPI BIOS Revision 0706
> > Processor:   AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
> > 
> > The hardware seems to support IOMMU, but it is not enabled:
> > 
> > # dmesg | grep -i iommu
> > [    0.000000] Please enable the IOMMU option in the BIOS setup
> > [    0.654618] PCI-DMA: using GART IOMMU.
> > [    0.654623] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture
> > 
> > 
> > Software versions:
> > 
> > # uname -a
> > Linux ss01 2.6.39-bpo.2-amd64 #1 SMP Thu Aug 4 11:42:06 UTC 2011 x86_64 GNU/Linux
> > 
> > # kvm --version
> > QEMU emulator version 1.1.2 (qemu-kvm-1.1.2+dfsg-5~bpo60+1, Debian), Copyright (c) 2003-2008 Fabrice Bellard

Hi, Alex.

 
> AFAIK, Athlon64 does not support AMD-Vi, which is the IOMMU support
> you'd need.

I will investigate this issue and then tell you.

> PCI passthrough also only works for VMs running on the same system
> where the card is installed, and doesn't offer multiplexing of a
> single device.  Thanks,

The two cluster nodes are running on the same host. On the issue of
multiplexing, was mostly a curiosity. For testing, I do not care to have
to manually link and unlink the PCI device.


Moreover, is having a problem with the mailing list? For some time I did
not write and since I was not receiving emails from October last year, I
signed up again with the same account that I was using before; but since
9 April that I do not receive emails from the list.

Interestingly I got your reply but did not get the email I sent to the
list. Today I wrote an email to the Pacemaker list with the same account
I used to sign up here, and I received it with no problems.


Thanks for your reply.


Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCI-passthrough on AMD - OpenVox A400P
  2013-04-14 16:16   ` Daniel Bareiro
@ 2013-04-14 18:08     ` Daniel Bareiro
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Bareiro @ 2013-04-14 18:08 UTC (permalink / raw)
  To: KVM General

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

On Sunday, 14 April 2013 13:16:30 -0300,
Daniel Bareiro wrote:

> > AFAIK, Athlon64 does not support AMD-Vi, which is the IOMMU support
> > you'd need.

> I will investigate this issue and then tell you.

Well... I was looking if BIOS options of the motherboad (M2N32 SLI
Deluxe) had some reference to IOMMU, but I found nothing.

According to a post [1] I read on the list, I tried the option
amd_iommu=on, obtaining the following in the log:

# dmesg | grep -i iommu
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.39-bpo.2-amd64 root=UUID=084f271f-0d70-40d2-9c22-c38848cd4d82 ro amd_iommu=on quiet
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.39-bpo.2-amd64 root=UUID=084f271f-0d70-40d2-9c22-c38848cd4d82 ro amd_iommu=on quiet
[    0.000000] Please enable the IOMMU option in the BIOS setup
[    0.654633] PCI-DMA: using GART IOMMU.
[    0.654638] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture

For the message "Please enable the IOMMU option in the BIOS setup", it
seems that IOMMU is still not enabled. So maybe you were right in what
you said before.


Regards,
Daniel

[1] http://www.mail-archive.com/kvm@vger.kernel.org/msg65714.html
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-14 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 17:58 PCI-passthrough on AMD - OpenVox A400P Daniel Bareiro
2013-04-09 18:06 ` Alex Williamson
2013-04-14 16:16   ` Daniel Bareiro
2013-04-14 18:08     ` Daniel Bareiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox