* Clarify old version messages and clean-up
@ 2007-05-07 9:30 Nguyen Anh Quynh
[not found] ` <9cde8bff0705070230m267695beg71acb27a71d1e8a1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Nguyen Anh Quynh @ 2007-05-07 9:30 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
This patch clarifies some "old version" error message, and deletes
some unused functions in userspace code.
Signed-off-by: Nguyen Anh Quynh <aquynh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
diffstat patch1.patch
kvmctl.c | 36 +++---------------------------------
1 file changed, 3 insertions(+), 33 deletions(-)
[-- Attachment #2: patch1.patch --]
[-- Type: text/x-patch, Size: 1587 bytes --]
diff --git a/user/kvmctl.c b/user/kvmctl.c
index d4f0eb3..487d88f 100644
--- a/user/kvmctl.c
+++ b/user/kvmctl.c
@@ -66,37 +66,6 @@ struct translation_cache {
void *physical;
};
-static void translation_cache_init(struct translation_cache *tr)
-{
- tr->physical = 0;
-}
-
-static int translate(kvm_context_t kvm, int vcpu, struct translation_cache *tr,
- unsigned long linear, void **physical)
-{
- unsigned long page = linear & ~(PAGE_SIZE-1);
- unsigned long offset = linear & (PAGE_SIZE-1);
-
- if (!(tr->physical && tr->linear == page)) {
- struct kvm_translation kvm_tr;
- int r;
-
- kvm_tr.linear_address = page;
-
- r = ioctl(kvm->vcpu_fd[vcpu], KVM_TRANSLATE, &kvm_tr);
- if (r == -1)
- return -errno;
-
- if (!kvm_tr.valid)
- return -EFAULT;
-
- tr->linear = page;
- tr->physical = kvm->physical_memory + kvm_tr.physical_address;
- }
- *physical = tr->physical + offset;
- return 0;
-}
-
/*
* memory regions parameters
*/
@@ -193,11 +162,12 @@ kvm_context_t kvm_init(struct kvm_callbacks *callbacks,
}
r = ioctl(fd, KVM_GET_API_VERSION, 0);
if (r == -1) {
- fprintf(stderr, "kvm kernel version too old\n");
+ fprintf(stderr, "kvm kernel version too old: KVM_GET_API_VERSION ioctl not supported\n");
goto out_close;
}
if (r < EXPECTED_KVM_API_VERSION && r != 10) {
- fprintf(stderr, "kvm kernel version too old\n");
+ fprintf(stderr, "kvm kernel version too old: We expect API version %d or newer, but got version %d\n",
+ EXPECTED_KVM_API_VERSION, r);
goto out_close;
}
if (r > EXPECTED_KVM_API_VERSION) {
[-- 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
* Re: Clarify old version messages and clean-up
[not found] ` <9cde8bff0705070230m267695beg71acb27a71d1e8a1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-05-08 8:44 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-05-08 8:44 UTC (permalink / raw)
To: Nguyen Anh Quynh; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Nguyen Anh Quynh wrote:
> This patch clarifies some "old version" error message, and deletes
> some unused functions in userspace code.
>
> Signed-off-by: Nguyen Anh Quynh <aquynh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
Applied. Please send unrelated changes in different patches in the future.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-08 8:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 9:30 Clarify old version messages and clean-up Nguyen Anh Quynh
[not found] ` <9cde8bff0705070230m267695beg71acb27a71d1e8a1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-05-08 8:44 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox