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

Re: [kvm-devel] [PATCH 4/4] Modify KVM to update guest time accounting.

From: Avi Kivity <hidden>
Date: 2007-08-20 13:40:24

Laurent Vivier wrote:
[PATCH 4/4] Modify KVM to update guest time accounting.

  
quoted hunk
Index: kvm/drivers/kvm/kvm.h
===================================================================
--- kvm.orig/drivers/kvm/kvm.h	2007-08-20 13:23:53.000000000 +0200
+++ kvm/drivers/kvm/kvm.h	2007-08-20 13:23:58.000000000 +0200
@@ -589,6 +589,17 @@ void kvm_mmu_unload(struct kvm_vcpu *vcp
 
 int kvm_hypercall(struct kvm_vcpu *vcpu, struct kvm_run *run);
 
+static inline void kvm_guest_enter(void)
+{
+#ifdef CONFIG_GUEST_ACCOUNTING
+	current->flags |= PF_VCPU;
+#endif
  
Since you select GUEST_ACCOUNTING, the #ifdef is always true?
+}
+
+static inline void kvm_guest_exit(void)
+{
  
Missing content?

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