Skip to contentSkip to conversation

Very strange behavior between balloon driver and network driver (Arndale)

DISCUSSION Jaeyong Yoo 3 participants 3 messages May 29, 2013

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

I expect that the ballooning up and down is counteracting the affect of the 1:1 workaround which is required on the Arndale due to lack of an IOMMU driver.

As a workaround I would recommend using dom0_mem= and disabling autoballooning.

After I applied the above two things, I still see the network error. Autoballooning is still used in privcmd with ioctl IOCTL_PRIVCMD_MMAPBATCH_V2 when mapping foreign range (in order to deliver the domU kernel binary to domU memory).

I applied as follows:
- put dom0_mem=256M in dom0 kernel booting arg.
- create domU with config autoballoon="off"

Quoted 4 lines

Of course if, as a Sumsung developer, you are able to gain access to the documentation necessary to write an IOMMU driver for the Arndale platform that would be great!

AFAIK Arndale board has sysMMU but it is placed between CPU and GPU for performance purpose. So, I think it is not be able to use it for virtualization.

Quoted 3 lines

Ian.

Jaeyong

#1 lore raw
Quoted 8 lines · Jaeyong Yoo
Quoted 7 lines

I expect that the ballooning up and down is counteracting the affect of the 1:1 workaround which is required on the Arndale due to lack of an IOMMU driver.

As a workaround I would recommend using dom0_mem= and disabling autoballooning.

Quoted 7 lines

After I applied the above two things, I still see the network error. Autoballooning is still used in privcmd with ioctl IOCTL_PRIVCMD_MMAPBATCH_V2 when mapping foreign range (in order to deliver the domU kernel binary to domU memory).

I applied as follows:
- put dom0_mem=256M in dom0 kernel booting arg.

This needs to be a Xen argument, not a dom0 kernel argument.

That said I thought that privcmd mmapbatch put back the original page, perhaps I am mistaken here though.

Quoted 1 line

- create domU with config autoballoon="off"

You put this in /etc/xen/xl.conf, not the guest config, correct?

Quoted 7 lines
Quoted 3 lines

Of course if, as a Sumsung developer, you are able to gain access to the documentation necessary to write an IOMMU driver for the Arndale platform that would be great!

AFAIK Arndale board has sysMMU but it is placed between CPU and GPU for performance purpose. So, I think it is not be able to use it for virtualization.

Oh, that's interesting and unfortunate :-(

Ian.

#2 lore raw
Quoted 9 lines · Ian Campbell
Quoted 7 lines
Quoted 3 lines

Of course if, as a Sumsung developer, you are able to gain access to the documentation necessary to write an IOMMU driver for the Arndale platform that would be great!

AFAIK Arndale board has sysMMU but it is placed between CPU and GPU for performance purpose. So, I think it is not be able to use it for virtualization.

Oh, that's interesting and unfortunate :-(

Am I getting this right that it not possible to use the sysMMU on the Arndale board to translate DMA accesses from the network card? FYI we wouldn't need two translation levels, just one.