public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvmctl.h
@ 2007-06-03  9:38 Nguyen Anh Quynh
       [not found] ` <9cde8bff0706030238j23318e55m1bda031b440064cf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Nguyen Anh Quynh @ 2007-06-03  9:38 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

This patch moves a comment in kvmctl.h to the right place, and fixes
some stuffs for doxygen.

Signed-off-by: Nguyen Anh Quynh <aquynh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

[-- Attachment #2: patch4.patch --]
[-- Type: application/octet-stream, Size: 3611 bytes --]

diff --git a/user/kvmctl.h b/user/kvmctl.h
index b14cb45..7d8fed5 100644
--- a/user/kvmctl.h
+++ b/user/kvmctl.h
@@ -132,23 +132,6 @@ int kvm_create(kvm_context_t kvm,
 int kvm_run(kvm_context_t kvm, int vcpu);
 
 /*!
- * \brief Read VCPU registers
- *
- * This gets the GP registers from the VCPU and outputs them
- * into a kvm_regs structure
- *
- * \note This function returns a \b copy of the VCPUs registers.\n
- * If you wish to modify the VCPUs GP registers, you should call kvm_set_regs()
- *
- * \param kvm Pointer to the current kvm_context
- * \param vcpu Which virtual CPU should get dumped
- * \param regs Pointer to a kvm_regs which will be populated with the VCPUs
- * registers values
- * \return 0 on success
- */
-
-
-/*!
  * \brief Get interrupt flag from on last exit to userspace
  *
  * This gets the CPU interrupt flag as it was on the last exit to userspace.
@@ -158,6 +141,7 @@ int kvm_run(kvm_context_t kvm, int vcpu);
  * \return interrupt flag value (0 or 1)
  */
 int kvm_get_interrupt_flag(kvm_context_t kvm, int vcpu);
+
 /*!
  * \brief Get the value of the APIC_BASE msr as of last exit to userspace
  *
@@ -168,6 +152,7 @@ int kvm_get_interrupt_flag(kvm_context_t kvm, int vcpu);
  * \return APIC_BASE msr contents
  */
 uint64_t kvm_get_apic_base(kvm_context_t kvm, int vcpu);
+
 /*!
  * \brief Check if a vcpu is ready for interrupt injection
  *
@@ -178,6 +163,7 @@ uint64_t kvm_get_apic_base(kvm_context_t kvm, int vcpu);
  * \return boolean indicating interrupt injection readiness
  */
 int kvm_is_ready_for_interrupt_injection(kvm_context_t kvm, int vcpu);
+
 /*!
  * \brief Set up cr8 for next time the vcpu is executed
  *
@@ -190,6 +176,21 @@ int kvm_is_ready_for_interrupt_injection(kvm_context_t kvm, int vcpu);
  */
 void kvm_set_cr8(kvm_context_t kvm, int vcpu, uint64_t cr8);
 
+/*!
+ * \brief Read VCPU registers
+ *
+ * This gets the GP registers from the VCPU and outputs them
+ * into a kvm_regs structure
+ *
+ * \note This function returns a \b copy of the VCPUs registers.\n
+ * If you wish to modify the VCPUs GP registers, you should call kvm_set_regs()
+ *
+ * \param kvm Pointer to the current kvm_context
+ * \param vcpu Which virtual CPU should get dumped
+ * \param regs Pointer to a kvm_regs which will be populated with the VCPUs
+ * registers values
+ * \return 0 on success
+ */
 int kvm_get_regs(kvm_context_t kvm, int vcpu, struct kvm_regs *regs);
 
 /*!
@@ -285,6 +286,7 @@ int kvm_set_msrs(kvm_context_t, int vcpu, struct kvm_msr_entry *msrs, int n);
  * \return 0 on success
  */
 int kvm_inject_irq(kvm_context_t kvm, int vcpu, unsigned irq);
+
 int kvm_guest_debug(kvm_context_t, int vcpu, struct kvm_debug_guest *dbg);
 
 /*!
@@ -353,7 +355,7 @@ void kvm_destroy_phys_mem(kvm_context_t, unsigned long phys_start,
 int kvm_get_dirty_pages(kvm_context_t, int slot, void *buf);
 
 
-/*
+/*!
  * \brief Create a memory alias
  *
  * Aliases a portion of physical memory to another portion.  If the guest
@@ -364,7 +366,7 @@ int kvm_create_memory_alias(kvm_context_t, int slot,
 			    uint64_t phys_start, uint64_t len,
 			    uint64_t target_phys);
 
-/*
+/*!
  * \brief Destroy a memory alias
  *
  * Removes an alias created with kvm_create_memory_alias().
@@ -372,7 +374,7 @@ int kvm_create_memory_alias(kvm_context_t, int slot,
 int kvm_destroy_memory_alias(kvm_context_t, int slot);
 
 /*!
- * \brief get a bitmap of guest ram pages which are allocated to the guest.
+ * \brief Get a bitmap of guest ram pages which are allocated to the guest.
  *
  * \param kvm Pointer to the current kvm_context
  * \param slot Memory slot number

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

end of thread, other threads:[~2007-06-03  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-03  9:38 [PATCH] kvmctl.h Nguyen Anh Quynh
     [not found] ` <9cde8bff0706030238j23318e55m1bda031b440064cf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-03  9:48   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox