Displaying 10 results from an estimated 10 matches for "page_array".
2007 Jan 12
0
[PATCH] xc_ptrace PAE awareness
...unsigned long *page_arr
* tables.
*
*/
-static unsigned long
-to_ma(int cpu,
- unsigned long in_addr)
+static uint64_t
+to_ma(int cpu, uint64_t maddr)
{
- unsigned long maddr = in_addr;
-
if ( current_is_hvm && paging_enabled(&ctxt[cpu]) )
- maddr = page_array[maddr >> PAGE_SHIFT] << PAGE_SHIFT;
+ maddr = (uint64_t)page_array[maddr >> PAGE_SHIFT] << PAGE_SHIFT;
return maddr;
}
@@ -225,7 +222,8 @@ map_domain_va_pae(
void *guest_va,
int perm)
{
- unsigned long l3e, l2e, l1e, l2p, l1p, p, va = (unsigned l...
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
...ain_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;
> +...
2005 Apr 30
0
[PATCH] vmx-mach-to-phys.patch
...05-04-29 18:28:13 -07:00
@@ -313,6 +313,16 @@
munmap(vl1tab, PAGE_SIZE);
munmap(vl2tab, PAGE_SIZE);
+ /* Write the machine->phys table entries. */
+ for ( count = 0; count < nr_pages; count++ )
+ {
+ if ( add_mmu_update(xc_handle, mmu,
+ (page_array[count] << PAGE_SHIFT) |
+ MMU_MACHPHYS_UPDATE, count) )
+ goto error_out;
+ }
+
+
if ((boot_paramsp = xc_map_foreign_range(
xc_handle, dom, PAGE_SIZE, PROT_READ|PROT_WRITE,
page_array[(vboot_params_start-dsi.v_start)>>PAGE_SHIFT])) == 0)...
2007 Jan 11
0
[PATCH 6/8] HVM save restore: guest memory handling
...*/
+ hvm_domain_context_t hvm_ctxt;
+
+ /* Live mapping of shared info structure */
+ shared_info_t *live_shinfo = NULL;
+
+ /* base of the region in which domain memory is mapped */
+ unsigned char *region_base = NULL;
+
+ uint32_t nr_pfns, rec_size, nr_vcpus;
+ unsigned long *page_array = NULL;
+
+ /* power of 2 order of max_pfn */
+ int order_nr;
+
+ /* bitmap of pages:
+ - that should be sent this iteration (unless later marked as skip);
+ - to skip this iteration because already dirty; */
+ unsigned long *to_send = NULL, *to_skip = NULL;
+
+ xc_shadow...
2006 Mar 10
2
[PATCH] - xc_core.c/xenctrl.h - refactor slightly to allow user specified output routines
The existing xc_domain_dumpcore is very specific to disk/file based
output. Refactor the code slightly to allow more user-specified
control. This is done by adding a parallel xc_domain_dumpcore2 (naming
isn''t always my strong suit), which allows the specification of a
callback routine and an opaque argument block. The existing dumpcore
routine is modified to use the callback for all
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
2005 Feb 19
0
[PATCH] check read/write return values
...4.000000000 -0500
+++ xen-unstable/tools/libxc/xc_plan9_build.c 2005-02-19 12:02:41.000000000 -0500
@@ -63,6 +63,7 @@
* your image builder.
* Xen guys, nuke this if you wish.
*/
+#if 0 /* NOT CALLED */
void
dumpit(int xc_handle, u32 dom,
int start_page, int tot, unsigned long *page_array)
@@ -85,6 +86,7 @@
munmap(vaddr, PAGE_SIZE);
}
}
+#endif
int
blah(char *b)
{
--- xen-unstable/tools/libxc/xc_private.c.warn2 2005-02-19 12:12:44.000000000 -0500
+++ xen-unstable/tools/libxc/xc_private.c 2005-02-19 12:14:44.000000000 -0500
@@ -276,12 +276,14 @@
unsigned long sz;...
2005 May 31
0
[PATCH] Store page and evtchn in start_info_t
...if ( initrd_len != 0 )
{
start_info->mod_start = vinitrd_start;
@@ -270,6 +276,9 @@
start_info->cmd_line[MAX_CMDLINE-1] = ''\0'';
munmap(start_info, PAGE_SIZE);
+ /* Tell our caller where we told domain store page was. */
+ *store_mfn = page_array[((vstartinfo_start-dsi.v_start)>>PAGE_SHIFT) + 1];
+
/* shared_info page starts its life empty. */
shared_info = xc_map_foreign_range(
xc_handle, dom, PAGE_SIZE, PROT_READ|PROT_WRITE, shared_info_frame);
@@ -310,7 +319,9 @@
const char *cmdline,...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...ned long flags,
> unsigned int vcpus,
>- unsigned int store_evtchn, unsigned long *store_mfn)
>+ unsigned int store_evtchn, unsigned long *store_mfn,
>+ unsigned int console_evtchn, unsigned long *console_mfn)
> {
> unsigned long *page_array = NULL;
> unsigned long count, i;
>@@ -358,6 +359,8 @@
> unsigned long vstartinfo_end;
> unsigned long vstoreinfo_start;
> unsigned long vstoreinfo_end;
>+ unsigned long vconsole_start;
>+ unsigned long vconsole_end;
> unsigned long vstack_start;
&g...
2007 Oct 24
16
PATCH 0/10: Merge PV framebuffer & console into QEMU
The following series of 10 patches is a merge of the xenfb and xenconsoled
functionality into the qemu-dm code. The general approach taken is to have
qemu-dm provide two machine types - one for xen paravirt, the other for
fullyvirt. For compatability the later is the default. The goals overall
are to kill LibVNCServer, remove alot of code duplication and/or parallel
impls of the same concepts, and