xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Re: Very strange behavior between balloon driver and network driver (Arndale)
@ 2013-05-30  3:44 Jaeyong Yoo
  0 siblings, 0 replies; 9+ messages in thread
From: Jaeyong Yoo @ 2013-05-30  3:44 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.xen.org

> > I guess the current work-around solution would be commenting out 
> > the following two lines, very nasty and introduces memory leak though.
> > Memory leak gives more time than network error for testing xen on Arndale  :)
> 
> The kernel should reuse ballooned out pages where possible rather than
> creating more so the leak is probably limited. Not ideal though.
> 
> I suspect the real answer is that the 1:1 workaround needs to be
> cleverer when dom0 decreases and increases its reservation...

I agree.

Jaeyong

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Very strange behavior between balloon driver and network driver (Arndale)
@ 2013-05-30  3:40 Jaeyong Yoo
  0 siblings, 0 replies; 9+ messages in thread
From: Jaeyong Yoo @ 2013-05-30  3:40 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: Ian Campbell, xen-devel@lists.xen.org

>> 
>> 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.
>

I'm not perfectly sure about this because I'm a software guy, but, 
I think it is not possible.

Jaeyong

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Very strange behavior between balloon driver and network driver (Arndale)
@ 2013-05-29 11:57 Jaeyong Yoo
  2013-05-29 13:51 ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: Jaeyong Yoo @ 2013-05-29 11:57 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.xen.org

>
>This needs to be a Xen argument, not a dom0 kernel argument.
Ah! got it.

>
>That said I thought that privcmd mmapbatch put back the original page,
>perhaps I am mistaken here though.
>
>>   - create domU with config autoballoon="off"
>
>>You put this in /etc/xen/xl.conf, not the guest config, correct?

Yes.

I guess the current work-around solution would be commenting out 
the following two lines, very nasty and introduces memory leak though.
Memory leak gives more time than network error for testing xen on Arndale  :)

In function drivers/xen/balloon.c
           //if (current_credit())
          //      schedule_delayed_work(&balloon_worker, 0);

Jaeyong

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Very strange behavior between balloon driver and network driver (Arndale)
@ 2013-05-29 11:22 Jaeyong Yoo
  2013-05-29 11:32 ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: Jaeyong Yoo @ 2013-05-29 11:22 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.xen.org

> 
> 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"

> 
> 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.

> 
> Ian.
> 

Jaeyong

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Very strange behavior between balloon driver and network driver (Arndale)
@ 2013-05-28 12:14 Jaeyong Yoo
  2013-05-28 13:10 ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: Jaeyong Yoo @ 2013-05-28 12:14 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

[-- Attachment #1: Type: text/html, Size: 3096 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2013-05-30  3:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30  3:44 Very strange behavior between balloon driver and network driver (Arndale) Jaeyong Yoo
  -- strict thread matches above, loose matches on Subject: below --
2013-05-30  3:40 Jaeyong Yoo
2013-05-29 11:57 Jaeyong Yoo
2013-05-29 13:51 ` Ian Campbell
2013-05-29 11:22 Jaeyong Yoo
2013-05-29 11:32 ` Ian Campbell
2013-05-29 13:55   ` Stefano Stabellini
2013-05-28 12:14 Jaeyong Yoo
2013-05-28 13:10 ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).