All of lore.kernel.org
 help / color / mirror / Atom feed
* sysconf() problem on Dom0
@ 2006-06-26 11:07 SUZUKI Kazuhiro
  2006-06-28 17:16 ` Create VM with libxc ferrucci
  0 siblings, 1 reply; 7+ messages in thread
From: SUZUKI Kazuhiro @ 2006-06-26 11:07 UTC (permalink / raw)
  To: xen-devel

Hi all,

I think patches/linux-2.6.16.13/xen-hotplug.patch does not work
correctly.

When I got a # of online CPUs by sysconf(_SC_NPROCESSORS_ONLN), this
function returns a # of all online and offline CPUs.

xen-hotplug.patch shows all CPUs including offline, but sysconf also
reads /proc/stat and counts online CPUs.

We should modify TOP command to use sysconf().

Thanks,
KAZ

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

* Create VM with libxc
  2006-06-26 11:07 sysconf() problem on Dom0 SUZUKI Kazuhiro
@ 2006-06-28 17:16 ` ferrucci
  2006-06-28 17:30   ` Petersson, Mats
  2006-06-28 19:49   ` Anthony Liguori
  0 siblings, 2 replies; 7+ messages in thread
From: ferrucci @ 2006-06-28 17:16 UTC (permalink / raw)
  To: xen-devel

What is the exact sequence of call, with libxc e libxs, to create a 
linux VM and to attach a device to it? It's urgent, I can't find an 
example and the library is not enough documented. I must use it in a C 
program that creates VM's automatically.

Ferrucci Luca

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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

* RE: Create VM with libxc
  2006-06-28 17:16 ` Create VM with libxc ferrucci
@ 2006-06-28 17:30   ` Petersson, Mats
  2006-06-28 17:37     ` ferrucci
  2006-06-28 19:49   ` Anthony Liguori
  1 sibling, 1 reply; 7+ messages in thread
From: Petersson, Mats @ 2006-06-28 17:30 UTC (permalink / raw)
  To: ferrucci, xen-devel

> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com 
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of 
> ferrucci@cli.di.unipi.it
> Sent: 28 June 2006 18:17
> To: xen-devel@lists.xensource.com
> Subject: [Xen-devel] Create VM with libxc
> 
> What is the exact sequence of call, with libxc e libxs, to create a 
> linux VM and to attach a device to it? It's urgent, I can't find an 
> example and the library is not enough documented. I must use 
> it in a C 
> program that creates VM's automatically.

What's wrong with using something like 
execve("xm", args);

--
Mats

> 
> Ferrucci Luca
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 

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

* RE: Create VM with libxc
  2006-06-28 17:30   ` Petersson, Mats
@ 2006-06-28 17:37     ` ferrucci
  2006-06-28 17:48       ` Petersson, Mats
  0 siblings, 1 reply; 7+ messages in thread
From: ferrucci @ 2006-06-28 17:37 UTC (permalink / raw)
  To: xen-devel


> What's wrong with using something like
> execve("xm", args);
>
> --
> Mats
>
I know this solution but it's not enough for my purpose. I must use 
libxc/xs because I must know when I exactly create a VM and I want 
receive a callback.
Can someone help me?

Ferrucci Luca

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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

* RE: Create VM with libxc
  2006-06-28 17:37     ` ferrucci
@ 2006-06-28 17:48       ` Petersson, Mats
  2006-06-28 17:56         ` ferrucci
  0 siblings, 1 reply; 7+ messages in thread
From: Petersson, Mats @ 2006-06-28 17:48 UTC (permalink / raw)
  To: ferrucci, xen-devel

> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com 
> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of 
> ferrucci@cli.di.unipi.it
> Sent: 28 June 2006 18:37
> To: xen-devel@lists.xensource.com
> Subject: RE: [Xen-devel] Create VM with libxc
> 
> 
> > What's wrong with using something like
> > execve("xm", args);
> >
> > --
> > Mats
> >
> I know this solution but it's not enough for my purpose. I must use 
> libxc/xs because I must know when I exactly create a VM and I want 
> receive a callback.
> Can someone help me?

Sure, I just try to suggest the most user-friendly approach before I go
into more complicated solutions... 

So, you need to look at .../tools/python/xm/create.py - but beware that
creating a domain isn't entirely straight-forward... 

Or if you want a more direct method, you need to parse or know the
"builder" key, and use either xc_linux_build or xc_hvm_build to perform
the actual domain creation. Not sure how you attach devices, I haven't
worked with that... 

--
Mats
> 
> Ferrucci Luca
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 

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

* RE: Create VM with libxc
  2006-06-28 17:48       ` Petersson, Mats
@ 2006-06-28 17:56         ` ferrucci
  0 siblings, 0 replies; 7+ messages in thread
From: ferrucci @ 2006-06-28 17:56 UTC (permalink / raw)
  To: Petersson, Mats; +Cc: xen-devel

>
> Sure, I just try to suggest the most user-friendly approach before I go
> into more complicated solutions...
>
> So, you need to look at .../tools/python/xm/create.py - but beware that
> creating a domain isn't entirely straight-forward...
>
> Or if you want a more direct method, you need to parse or know the
> "builder" key, and use either xc_linux_build or xc_hvm_build to perform
> the actual domain creation. Not sure how you attach devices, I haven't
> worked with that...
>
> --
> Mats
>>
>> Ferrucci Luca
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>>

I have used xc_linux_build and I've created a VM, encrease memory 
reservation. But, how can I create a console channel with it? How can I 
attach a device using libxs?

Thank you for your reply Mats.

Ferrucci Luca



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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

* Re: Create VM with libxc
  2006-06-28 17:16 ` Create VM with libxc ferrucci
  2006-06-28 17:30   ` Petersson, Mats
@ 2006-06-28 19:49   ` Anthony Liguori
  1 sibling, 0 replies; 7+ messages in thread
From: Anthony Liguori @ 2006-06-28 19:49 UTC (permalink / raw)
  To: ferrucci; +Cc: xen-devel, Jacob Gorm Hansen

ferrucci@cli.di.unipi.it wrote:
> What is the exact sequence of call, with libxc e libxs, to create a 
> linux VM and to attach a device to it? It's urgent, I can't find an 
> example and the library is not enough documented. I must use it in a C 
> program that creates VM's automatically.

Search the archives for some of the code that Jacob has posted.

These domains aren't going to play nicely with Xend though so I suspect 
strongly that it's not going to address your problem adequately.  It's 
hard to say when you're so cryptic about your needs ;-)

Regards,

Anthony Liguori

> Ferrucci Luca
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2006-06-28 19:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26 11:07 sysconf() problem on Dom0 SUZUKI Kazuhiro
2006-06-28 17:16 ` Create VM with libxc ferrucci
2006-06-28 17:30   ` Petersson, Mats
2006-06-28 17:37     ` ferrucci
2006-06-28 17:48       ` Petersson, Mats
2006-06-28 17:56         ` ferrucci
2006-06-28 19:49   ` Anthony Liguori

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.