[Libvir] [PATCH][RFC] shows scheduler information

Richard W.M. Jones rjones at redhat.com
Thu Mar 29 12:09:26 UTC 2007


Atsushi SAKAI wrote:
> Hi,
> 
> This patch intends add a showing function of scheduler information.
> If apply this patch to current revision 1.490 
> and type virsh dominfo 0 
> then shows following scheduler information.
> Currently I assume credit scheduler only.
> getting function is implemented but setting function is not yet.
> I just waiting for comments.

Is this part of the patch correct?

diff -urpN libvirt.0329/src/driver.h libvirt.sched2/src/driver.h
--- libvirt.0329/src/driver.h	2007-03-16 02:24:57.000000000 +0900
+++ libvirt.sched2/src/driver.h	2007-03-29 19:48:04.000000000 +0900
@@ -146,6 +146,12 @@ typedef int
  typedef int
  	(*virDrvDomainSetAutostart)	(virDomainPtr domain,
  					 int autostart);
+typedef int
+	(*virDrvDomainGetSchedInfo)	(virDomainPtr domain,
+					 int *autostart);
+typedef int
+	(*virDrvDomainSetSchedInfo)	(virDomainPtr domain,
+					 int autostart);

  typedef struct _virDriver virDriver;
  typedef virDriver *virDriverPtr;

My more general comment would be how Xen-specific is this?  What 
scheduler could be used by other drivers?  (Obviously qemu just uses the 
Linux scheduler.  However I don't know what kvm uses - whether it also 
schedules using the Linux scheduler, or some other method).

Rich.

-- 
Emerging Technologies, Red Hat  http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF     Mobile: +44 7866 314 421

Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SI4 1TE, United Kingdom.
Registered in UK and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070329/00579e0e/attachment-0001.bin>


More information about the libvir-list mailing list