linux/drivers/xen/xenfs
Ian Campbell f020e29051 privcmd: MMAPBATCH: Fix error handling/reporting
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.

With this change I am able to start an HVM domain.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-10-20 16:22:33 -07:00
..
Makefile xen: add privcmd driver 2010-10-20 16:22:29 -07:00
privcmd.c privcmd: MMAPBATCH: Fix error handling/reporting 2010-10-20 16:22:33 -07:00
super.c xen/xenfs: set_page_dirty is supposed to return true if it dirties 2010-10-20 16:22:30 -07:00
xenbus.c Merge branch 'xen/xenbus' into upstream/xen 2010-08-04 14:49:24 -07:00
xenfs.h xen: add privcmd driver 2010-10-20 16:22:29 -07:00
xenstored.c xen: add /proc/xen/xsd_{kva,port} to xenfs 2010-10-20 16:22:26 -07:00