From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Mon, 3 Dec 2007 22:11:02 +0800 Subject: [PATCH] kvm: libkvm. Placing the declaration of kvm_set&get_cr8 declaration under the constraints of x86. Placing the declaration of kvm_set&get_cr8 declaration under the constraints of x86.
Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]> --- libkvm/libkvm.h | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h index 41d76ca..ff260f4 100644 --- a/libkvm/libkvm.h +++ b/libkvm/libkvm.h @@ -201,29 +201,6 @@ uint64_t kvm_get_apic_base(kvm_context_t kvm, int vcpu); int kvm_is_ready_for_interrupt_injection(kvm_context_t kvm, int vcpu); /*! - * \brief Set up cr8 for next time the vcpu is executed - * - * This is a fast setter for cr8, which will be applied when the - * vcpu next enters guest mode. - * - * \param kvm Pointer to the current kvm_context - * \param vcpu Which virtual CPU should get dumped - * \param cr8 next cr8 value - */ -void kvm_set_cr8(kvm_context_t kvm, int vcpu, uint64_t cr8); - -/*! - * \brief Get cr8 for sync tpr in qemu apic emulation - * - * This is a getter for cr8, which used to sync with the tpr in qemu - * apic emualtion. - * - * \param kvm Pointer to the current kvm_context - * \param vcpu Which virtual CPU should get dumped - */ -__u64 kvm_get_cr8(kvm_context_t kvm, int vcpu); - -/*! * \brief Read VCPU registers * * This gets the GP registers from the VCPU and outputs them @@ -362,6 +339,29 @@ int kvm_set_shadow_pages(kvm_context_t kvm, unsigned int nrshadow_pages); * \param nrshadow_pages number of pages to be allocated */ int kvm_get_shadow_pages(kvm_context_t kvm , unsigned int *nrshadow_pages); + +/*! + * \brief Set up cr8 for next time the vcpu is executed + * + * This is a fast setter for cr8, which will be applied when the + * vcpu next enters guest mode. + * + * \param kvm Pointer to the current kvm_context + * \param vcpu Which virtual CPU should get dumped + * \param cr8 next cr8 value + */ +void kvm_set_cr8(kvm_context_t kvm, int vcpu, uint64_t cr8); + +/*! + * \brief Get cr8 for sync tpr in qemu apic emulation + * + * This is a getter for cr8, which used to sync with the tpr in qemu + * apic emualtion. + * + * \param kvm Pointer to the current kvm_context + * \param vcpu Which virtual CPU should get dumped + */ +__u64 kvm_get_cr8(kvm_context_t kvm, int vcpu); #endif /*! -- 1.5.2
0005-kvm-libkvm.-Placing-the-declaration-of-kvm_set-get_.patch
Description: 0005-kvm-libkvm.-Placing-the-declaration-of-kvm_set-get_.patch
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel