search for: xen_pfn_t

Displaying 20 results from an estimated 84 matches for "xen_pfn_t".

2012 Sep 08
3
[patch 3/3] xen/privcmd: remove const modifier from declaration
...include/xen/privcmd.h index a853168..58ed953 100644 --- a/include/xen/privcmd.h +++ b/include/xen/privcmd.h @@ -69,7 +69,7 @@ struct privcmd_mmapbatch_v2 { unsigned int num; /* number of pages to populate */ domid_t dom; /* target domain */ __u64 addr; /* virtual address */ - const xen_pfn_t __user *arr; /* array of mfns */ + xen_pfn_t __user *arr; /* array of mfns */ int __user *err; /* array of error codes */ }; diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 0ce006a..fceb83e 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -389,7 +389,7 @@ sta...
2012 Sep 08
3
[patch 3/3] xen/privcmd: remove const modifier from declaration
...include/xen/privcmd.h index a853168..58ed953 100644 --- a/include/xen/privcmd.h +++ b/include/xen/privcmd.h @@ -69,7 +69,7 @@ struct privcmd_mmapbatch_v2 { unsigned int num; /* number of pages to populate */ domid_t dom; /* target domain */ __u64 addr; /* virtual address */ - const xen_pfn_t __user *arr; /* array of mfns */ + xen_pfn_t __user *arr; /* array of mfns */ int __user *err; /* array of error codes */ }; diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 0ce006a..fceb83e 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -389,7 +389,7 @@ sta...
2012 Sep 20
17
[PATCH 0/4] Add V4V to Xen (v6)
..._t, use long instead - Return -MSGSIZE for message bigger than 2GB - Fixup size handling - Rename protocol with message_type to avoid the confusion with the IP protocol flag - Replaced V4V_DOMID_ANY value with DOMID_INVALID - Replaced v4v_pfn_t with xen_pfn_t - Add padding to struct v4v_info - Fixup hypercall documentation - Move V4V_ROUNDUP to v4v.c - Remove v4v_utils.h (we could potentially add it later). v3 changes: - Switch to event channel - Allocated a unbound event channel...
2012 Oct 24
7
[PATCH 4/5] xen: arm: implement remap interfaces needed for privcmd mappings.
...en/interface.h b/arch/arm/include/asm/xen/interface.h index 5000397..1151188 100644 --- a/arch/arm/include/asm/xen/interface.h +++ b/arch/arm/include/asm/xen/interface.h @@ -49,6 +49,7 @@ DEFINE_GUEST_HANDLE(void); DEFINE_GUEST_HANDLE(uint64_t); DEFINE_GUEST_HANDLE(uint32_t); DEFINE_GUEST_HANDLE(xen_pfn_t); +DEFINE_GUEST_HANDLE(xen_ulong_t); /* Maximum number of virtual CPUs in multi-processor guests. */ #define MAX_VIRT_CPUS 1 diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c index ba5cc13..f28fc1a 100644 --- a/arch/arm/xen/enlighten.c +++ b/arch/arm/xen/enlighten.c @@ -9,6 +9,7...
2010 Oct 28
1
[PATCH] xen: xenfs: privcmd: check put_user() return code
...-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/xen/xenfs/privcmd.c b/drivers/xen/xenfs/privcmd.c index f80be7f..2eb04c8 100644 --- a/drivers/xen/xenfs/privcmd.c +++ b/drivers/xen/xenfs/privcmd.c @@ -266,9 +266,7 @@ static int mmap_return_errors(void *data, void *state) xen_pfn_t *mfnp = data; struct mmap_batch_state *st = state; - put_user(*mfnp, st->user++); - - return 0; + return put_user(*mfnp, st->user++); } static struct vm_operations_struct privcmd_vm_ops; @@ -323,10 +321,8 @@ static long privcmd_ioctl_mmap_batch(void __user *udata) up_write(&mm-&...
2010 Oct 28
1
[PATCH] xen: xenfs: privcmd: check put_user() return code
...-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/xen/xenfs/privcmd.c b/drivers/xen/xenfs/privcmd.c index f80be7f..2eb04c8 100644 --- a/drivers/xen/xenfs/privcmd.c +++ b/drivers/xen/xenfs/privcmd.c @@ -266,9 +266,7 @@ static int mmap_return_errors(void *data, void *state) xen_pfn_t *mfnp = data; struct mmap_batch_state *st = state; - put_user(*mfnp, st->user++); - - return 0; + return put_user(*mfnp, st->user++); } static struct vm_operations_struct privcmd_vm_ops; @@ -323,10 +321,8 @@ static long privcmd_ioctl_mmap_batch(void __user *udata) up_write(&mm-&...
2007 Jan 18
13
[PATCH 0/5] dump-core take 2:
The following dump-core patches changes its format into ELF, adds PFN-GMFN table, HVM support, and adds experimental IA64 support. - ELF format Program header and note section are adopted. - HVM domain support To know the memory area to dump, XENMEM_set_memory_map is added. XENMEM_memory_map hypercall is for current domain, so new one is created. and hvm domain builder tell xen its
2009 Jan 14
5
[PATCH] Support cross-bitness guest when core-dumping
This patch allows core-dumping to work on a cross-bit host/guest configuration, whereas previously that was not supported. It supports both PV and FV guests. The core file format generated by the host, needs to match that of the guest, so an alignment issue is addressed, along with the p2m frame list handling being done according to the guest size. Signed-off-by: Bruce Rogers
2012 Oct 04
49
[RFC 00/14] arm: implement ballooning and privcmd foreign mappings based on x86 PVH
This series implements ballooning for Xen on ARM and builds and Mukesh''s PVH privcmd stuff to implement foreign page mapping on ARM, replacing the old "HACK: initial (very hacky) XENMAPSPACE_gmfn_foreign" patch. The baseline is a bit complex, it is basically Stefano''s xenarm-forlinus branch (commit bbd6eb29214e) merged with Konrad''s linux-next-pvh branch
2007 Jun 15
1
[PATCH RFC] add domain builder support for bzImage kernels
...0x1f1-sizeof(struct setup_header)]; +} __attribute__((packed)); + +#endif /* _ASM_BOOTPARAM_H */ diff -r 3af164753238 tools/libxc/xc_dom.h --- a/tools/libxc/xc_dom.h Thu Jun 14 08:15:19 2007 -0700 +++ b/tools/libxc/xc_dom.h Thu Jun 14 08:43:44 2007 -0700 @@ -55,6 +55,7 @@ struct xc_dom_image { xen_pfn_t xenstore_pfn; xen_pfn_t shared_info_pfn; xen_pfn_t bootstack_pfn; + xen_pfn_t bootparams_pfn; xen_vaddr_t virt_alloc_end; xen_vaddr_t bsd_symtab_start; @@ -254,6 +255,11 @@ static inline xen_pfn_t xc_dom_p2m_guest return dom->p2m_host[pfn]; } +char *xc_dom_guest_...
2007 Jun 15
1
[PATCH RFC] add domain builder support for bzImage kernels
...0x1f1-sizeof(struct setup_header)]; +} __attribute__((packed)); + +#endif /* _ASM_BOOTPARAM_H */ diff -r 3af164753238 tools/libxc/xc_dom.h --- a/tools/libxc/xc_dom.h Thu Jun 14 08:15:19 2007 -0700 +++ b/tools/libxc/xc_dom.h Thu Jun 14 08:43:44 2007 -0700 @@ -55,6 +55,7 @@ struct xc_dom_image { xen_pfn_t xenstore_pfn; xen_pfn_t shared_info_pfn; xen_pfn_t bootstack_pfn; + xen_pfn_t bootparams_pfn; xen_vaddr_t virt_alloc_end; xen_vaddr_t bsd_symtab_start; @@ -254,6 +255,11 @@ static inline xen_pfn_t xc_dom_p2m_guest return dom->p2m_host[pfn]; } +char *xc_dom_guest_...
2007 Jun 15
1
[PATCH RFC] add domain builder support for bzImage kernels
...0x1f1-sizeof(struct setup_header)]; +} __attribute__((packed)); + +#endif /* _ASM_BOOTPARAM_H */ diff -r 3af164753238 tools/libxc/xc_dom.h --- a/tools/libxc/xc_dom.h Thu Jun 14 08:15:19 2007 -0700 +++ b/tools/libxc/xc_dom.h Thu Jun 14 08:43:44 2007 -0700 @@ -55,6 +55,7 @@ struct xc_dom_image { xen_pfn_t xenstore_pfn; xen_pfn_t shared_info_pfn; xen_pfn_t bootstack_pfn; + xen_pfn_t bootparams_pfn; xen_vaddr_t virt_alloc_end; xen_vaddr_t bsd_symtab_start; @@ -254,6 +255,11 @@ static inline xen_pfn_t xc_dom_p2m_guest return dom->p2m_host[pfn]; } +char *xc_dom_guest_...
2008 Jul 24
2
[RFC] i386 highmem assist hypercalls
...7-21/xen/include/public/xen.h =================================================================== --- 2008-07-21.orig/xen/include/public/xen.h 2008-06-17 13:59:52.000000000 +0200 +++ 2008-07-21/xen/include/public/xen.h 2008-07-21 08:36:26.000000000 +0200 @@ -231,6 +231,13 @@ DEFINE_XEN_GUEST_HANDLE(xen_pfn_t); * cmd: MMUEXT_SET_LDT * linear_addr: Linear address of LDT base (NB. must be page-aligned). * nr_ents: Number of entries in LDT. + * + * cmd: MMUEXT_CLEAR_PAGE + * mfn: Machine frame number to be cleared. + * + * cmd: MMUEXT_COPY_PAGE + * mfn: Machine frame number of the destination page. +...
2013 Jul 18
15
[PATCH v5 0/5] xen: public interface and foreign struct check changes for arm
I last posted this back in April to critical acclaim (AKA near total silence). I''m not sure who looks after tools/include/xen-foreign. I had thought it was Jan but I think I was confused and was thinking of the semi-related xen/include/compat stuff. IOW I think nobody felt "responsible". Unless there''s any objection lets just treat this as coming under tools. The
2013 Nov 14
4
[PATCH] xen/arm: Allow balooning working with 1:1 memory mapping
...ude <asm/platform.h> +#endif struct memop_args { /* INPUT */ @@ -90,7 +93,7 @@ static void increase_reservation(struct memop_args *a) static void populate_physmap(struct memop_args *a) { - struct page_info *page; + struct page_info *page = NULL; unsigned long i, j; xen_pfn_t gpfn, mfn; struct domain *d = a->domain; @@ -122,7 +125,33 @@ static void populate_physmap(struct memop_args *a) } else { - page = alloc_domheap_pages(d, a->extent_order, a->memflags); +#ifdef CONFIG_ARM + if ( d == dom0 && plat...
2006 Sep 18
1
Re: dumpcore changes -- [Xen-changelog] [xen-unstable] In this patch, the xc_domain_dumpcore_via_callback() in xc_core.c of
...py_from_domain_page(int xc_handle, > @@ -27,7 +33,7 @@ xc_domain_dumpcore_via_callback(int xc_h > void *args, > dumpcore_rtn_t dump_rtn) > { > - unsigned long nr_pages; > + unsigned long n, nr_pages; > xen_pfn_t *page_array = NULL; > xc_dominfo_t info; > int i, nr_vcpus = 0; > @@ -37,6 +43,12 @@ xc_domain_dumpcore_via_callback(int xc_h > char dummy[PAGE_SIZE]; > int dummy_len; > int sts; > + unsigned int cpy_err_cnt = 0; > + struct dump_args *da = args...
2006 Apr 19
0
RE: [patch] "frame number" size in hypercall ABI
Keir Fraser wrote: > On 19 Apr 2006, at 17:44, Hollis Blanchard wrote: > >> "xen_frameno_t" then? > > xen_pfn_t? Definitely won''t conflict with anyone, and I prefer ''pfn'' > to ''frameno'' as it''s more consistent with other names we have in the > interface. > >> Attached is the updated patch, with typos fixed and a couple other >> corre...
2010 Nov 13
2
[PATCH -next] xen: fix header export to userspace
...--- 1 file changed, 1 insertion(+), 4 deletions(-) --- linux-next-20101112.orig/include/xen/privcmd.h +++ linux-next-20101112/include/xen/privcmd.h @@ -34,13 +34,10 @@ #define __LINUX_PUBLIC_PRIVCMD_H__ #include <linux/types.h> +#include <linux/compiler.h> typedef unsigned long xen_pfn_t; -#ifndef __user -#define __user -#endif - struct privcmd_hypercall { __u64 op; __u64 arg[5];
2010 Nov 13
2
[PATCH -next] xen: fix header export to userspace
...--- 1 file changed, 1 insertion(+), 4 deletions(-) --- linux-next-20101112.orig/include/xen/privcmd.h +++ linux-next-20101112/include/xen/privcmd.h @@ -34,13 +34,10 @@ #define __LINUX_PUBLIC_PRIVCMD_H__ #include <linux/types.h> +#include <linux/compiler.h> typedef unsigned long xen_pfn_t; -#ifndef __user -#define __user -#endif - struct privcmd_hypercall { __u64 op; __u64 arg[5];
2010 Nov 13
2
[PATCH -next] xen: fix header export to userspace
...--- 1 file changed, 1 insertion(+), 4 deletions(-) --- linux-next-20101112.orig/include/xen/privcmd.h +++ linux-next-20101112/include/xen/privcmd.h @@ -34,13 +34,10 @@ #define __LINUX_PUBLIC_PRIVCMD_H__ #include <linux/types.h> +#include <linux/compiler.h> typedef unsigned long xen_pfn_t; -#ifndef __user -#define __user -#endif - struct privcmd_hypercall { __u64 op; __u64 arg[5];