* [PATCH][0/5] kvm:libkvm : KVM/IA64 libkvmfor ia64
@ 2007-12-03 14:50 Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA39CE2-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2007-12-03 14:50 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 641 bytes --]
Hi, Avi
These patches enable libkvm built successfully for ia64. This
is the preparation support for kvm/ia64. It will help us to reduce the
maintain effor once check-in. I will send the subsequent patches to
enable ia64 userspace support.
[1/5] Update configure file to make it work for ia64.
[2/5] Add libkvm-ia64.c for libkvm support on ia64
[3/5] Add the kvm-ia64.h for ia64 support.
[4/5] Moving kvm_set/kvm_get_shadow_pages to libkvm-x86.c
[5/5] Moving the delarations of kvm_set_cr8 and kvm_get_cr8 to
x86-specific area.
Signed-off-by: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
[-- Attachment #2: 0005-kvm-libkvm.-Placing-the-declaration-of-kvm_set-get_.patch --]
[-- Type: application/octet-stream, Size: 2546 bytes --]
From cdd14d64a6bcf490d054ab312a827f08cd435cad Mon Sep 17 00:00:00 2001
From: Zhang Xiantao <xiantao.zhang@intel.com>
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 <xiantao.zhang@intel.com>
---
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
[-- Attachment #3: Type: text/plain, Size: 309 bytes --]
-------------------------------------------------------------------------
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
[-- 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
* Re: [PATCH][0/5] kvm:libkvm : KVM/IA64 libkvmfor ia64
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA39CE2-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2007-12-04 10:09 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-12-04 10:09 UTC (permalink / raw)
To: Zhang, Xiantao; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Zhang, Xiantao wrote:
> Hi, Avi
> These patches enable libkvm built successfully for ia64. This
> is the preparation support for kvm/ia64. It will help us to reduce the
> maintain effor once check-in. I will send the subsequent patches to
> enable ia64 userspace support.
>
> [1/5] Update configure file to make it work for ia64.
> [2/5] Add libkvm-ia64.c for libkvm support on ia64
> [3/5] Add the kvm-ia64.h for ia64 support.
> [4/5] Moving kvm_set/kvm_get_shadow_pages to libkvm-x86.c
> [5/5] Moving the delarations of kvm_set_cr8 and kvm_get_cr8 to
> x86-specific area.
>
Applied all, thanks.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-04 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 14:50 [PATCH][0/5] kvm:libkvm : KVM/IA64 libkvmfor ia64 Zhang, Xiantao
[not found] ` <42DFA526FC41B1429CE7279EF83C6BDCA39CE2-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-12-04 10:09 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox