Re: KVM Test result, kernel 5ca24d9.., userspace 120e0c8..

Izik Eidus
2007-12-19T10:21:58Z

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

On Wed, 2007-12-19 at 16:59 +0800, Zhao, Yunfeng wrote:
> Seems the issue is not fully resolved.
> Save/restore on 64bist host may cause guest to kernel panic.
> Here is the snapshot:
> https://sourceforge.net/tracker/download.php?group_id=180599&atid=893831&file_id=259112&aid=1824525
>
it seems like this patch fix the issue with the ugly dmesg in the host
side
can you please try it and report?

[-- Attachment #2: fixget --]
[-- Type: text/x-patch, Size: 418 bytes --]

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 845beb2..a5ee518 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -470,7 +470,7 @@ static struct page *__gfn_to_page(struct kvm *kvm, gfn_t gfn)
return bad_page;
}

- npages = get_user_pages(current, current->mm, addr, 1, 1, 0, page,
+ npages = get_user_pages(current, current->mm, addr, 1, 1, 1, page,
NULL);

if (npages != 1) {

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

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

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