Skip to contentSkip to conversation

privcmd: MMAPBATCH: Fix error handling/reporting

PATCH Boris Derzhavets 2 participants 2 messages May 21, 2009

lore
Share & tools
lore
#0 lore raw

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_MMAPBATCH is 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 direct HYPERVISOR_mmu_update() calls and small batches. The xen_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 to mmapbatch->arr not over mmapbatch, smashing the caller's stack.
- remap_domain_mfn_range can 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

#1 lore raw
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