lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 19 Oct 2007 12:18:56 -0500
From:	Hollis Blanchard <hollisb@...ibm.com>
To:	Christian Borntraeger <borntraeger@...ibm.com>
Cc:	Avi Kivity <avi@...ranet.com>,
	kvm-devel <kvm-devel@...ts.sourceforge.net>,
	Laurent Vivier <Laurent.Vivier@...l.net>,
	linux-kernel@...r.kernel.org
Subject: Re: [kvm-devel] Use virtual cpu accounting if available for guest
	times.

On Fri, 2007-10-19 at 11:57 -0500, Hollis Blanchard wrote:
> > @@ -669,11 +670,13 @@ __init void kvm_arch_init(void);
> > 
> >  static inline void kvm_guest_enter(void)
> >  {
> > +	account_system_vtime(current);
> >  	current->flags |= PF_VCPU;
> >  }
> > 
> >  static inline void kvm_guest_exit(void)
> >  {
> > +	account_system_vtime(current);
> >  	current->flags &= ~PF_VCPU;
> >  }
> 
> I don't understand. Should kvm_guest_exit() be calling
> account_user_vtime() (instead of account_system_vtime())?

Never mind; the tree I was looking at didn't have the
account_guest_time() stuff in account_system_time().

-- 
Hollis Blanchard
IBM Linux Technology Center

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ