Thread (1 message) 1 message, 1 author, 2007-08-19

Re: [kvm-devel] [PATCH/RFC 3/4]Introduce "account modifiers" mechanism

From: Avi Kivity <hidden>
Date: 2007-08-19 07:38:10

Laurent Vivier wrote:
Avi Kivity wrote:
[...]
  
quoted
The normal user/system accounting has the same issue, no?  Whereever we
happen to land (kernel or user) gets the whole tick.

So I think it is okay to have the same limitation for guest time.

    
So this is how it looks like.
PATCH 1 and 2 are always a prerequisite.

  
quoted hunk
+	tmp = cputime_to_cputime64(cputime);
+	if (p->flags & PF_VCPU) {
+		p->utime = cputime_add(p->utime, cputime);
+		p->gtime = cputime_add(p->gtime, cputime);
+
+		cpustat->guest = cputime64_add(cpustat->guest, tmp);
+		cpustat->user = cputime64_add(cpustat->user, tmp);
+
+		p->flags &= ~PF_VCPU;
+
+		return;
+	}
+
Where did CONFIG_GUEST_ACCOUNTING go?


-- 
error compiling committee.c: too many arguments to function
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help