privcmd: MMAPBATCH: Fix error handling/reporting
I've compiled 2.6.30-rc6-tip with xenfs built-in and successfully created and ran Ubuntu 8.10 Server HVM and CentOS 5.3 HVM DomUs with traditional hvm-profiles. Remote VNC connections to HVM DomUs might be unexpectedly frozen either broken after 5-10 minutes .
Boris.
--- On Wed, 5/20/09, Jeremy Fitzhardinge <[email protected]> wrote:
From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH] privcmd: MMAPBATCH: Fix error handling/reporting
To: "Ian Campbell" <[email protected]>
Cc: [email protected]
Date: Wednesday, May 20, 2009, 5:13 PM
Quoted 13 lines · Ian Campbell
On error
IOCTL_PRIVCMD_MMAPBATCHis expected to set the top nibble of the effected MFN and return 0. Currently it leaves the MFN unmodified and returns the number of failures. Therefore:- reimplement
remap_domain_mfn_range()using directHYPERVISOR_mmu_update()calls and small batches. Thexen_set_domain_pte()interface does not report errors and since some failures are expected/normal using the multicall infrastructure is too noisy.
- return 0 as expected
- writeback the updated MFN list tommapbatch->arrnot over mmapbatch, smashing the caller's stack.
-remap_domain_mfn_rangecan be static.
Quoted 2 lines
With this change I am able to start an HVM domain.
This breaks compiling xenfs as a module; neither flush_tlb_all or arbitrary_virt_to_machine are exported, I think.
J
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 4 lines · Boris Derzhavets
I've compiled 2.6.30-rc6-tip with xenfs built-in and successfully created and ran Ubuntu 8.10 Server HVM and CentOS 5.3 HVM DomUs with traditional hvm-profiles. Remote VNC connections to HVM DomUs might be unexpectedly frozen either broken after 5-10 minutes .
That's not new behaviour though, is it? You reported VNC failures before. Does disabling GSO help?
J