Displaying 10 results from an estimated 10 matches for "set_p2m_entry".
2011 Sep 23
2
Some problems about xenpaging
...2m_is_paging(t) )
+ {
+ struct page_info *page;
+ /* alloc a new page to compensate the pod list */
+ page = alloc_domheap_page(d, 0);
+ if ( unlikely(page == NULL) )
+ {
+ goto out_entry_check;
+ }
+ set_p2m_entry(d, gpfn + i, _mfn(INVALID_MFN), 0, p2m_invalid);
+ p2m_mem_paging_drop_page(d, gpfn+i);
+ p2m_pod_cache_add(d, page, 0);
+ steal_for_cache = ( p2md->pod.entry_count > p2md->pod.count );
+ nonpod--;
+ ram--;
+ }
+ /* for...
2007 Jun 28
5
One question on MMIO
In sh_page_fault(), there are some code like following, why we think it
is mmio only when paging_vcpu_mode_translate(v)?
Thanks
Yunhong Jiang
/* What mfn is the guest trying to access? */
gfn = guest_l1e_get_gfn(gw.eff_l1e);
gmfn = vcpu_gfn_to_mfn(v, gfn);
mmio = (is_hvm_domain(d)
&& paging_vcpu_mode_translate(v)
&&
2007 Mar 24
5
memsize for HVM save/restore
As you know, HVM save/restore broke recently because restored config miss guest
memsize that used by xc_hvm_restore to locate some pfn.
After discussion, we decided to remove the pfn deduction logic from restore side
by adding a general memory layout. I have a patch for it.
But then qemu broke, because it also require the memsize to locate the share
page. We can''t use the previous
2011 Nov 01
2
xenpaing: one way to avoid paging out the page, when the corresponding mfn is in use.
...gt; avoid saving timestamp and access tag
if ( !mfn_valid(mfn) )
goto out;
clear_access_tag(); ----------> clear the access tag of this page
if (test_page_hot())
goto out; ------> if the page is accessed recently, go to out
........
set_p2m_entry(d, gfn, mfn, 0, p2m_ram_paging_out);
if ( test_access_tag ( mfn ) )
goto out; --------> if access tag is set, the gfn_to_mfn must have happened above, abort anyway.
ret = 0;
out:
p2m_unlock(d->arch.p2m);
return ret;
}
Maybe this is an imperfect prototype, do you h...
2010 May 07
0
[PATCH] More xenalyze type fixes
...printf(warn, "%s: expected %zd bytes for %d-level guest, got %d!\n",
__func__, sizeof(r->gpl4), h->v->guest_paging_levels,
ri->extra_words * 4);
dump_unexpected_and_exit(ri);
@@ -7086,7 +7086,7 @@
printf(" %s set_p2m_entry d%d o%d g %llx m %llx\n",
ri->dump_header,
r->d, r->order,
- r->gfn, r->mfn);
+ (unsigned long long)r->gfn, (unsigned long long)r->mfn);
}
}
@@ -7104,7 +7104,7 @@
printf(" %s pod_populate d%d...
2012 Jun 08
18
[PATCH 0 of 4 RFC] Populate-on-demand: Check pages being returned by the balloon driver
Populate-on-demand: Check pages being returned by the balloon driver
This patch series is the second result of my work last summer on
decreasing fragmentation of superpages in a guests'' p2m when using
populate-on-demand.
This patch series is against 4.1; I''m posting it to get feedback on
the viability of getting a ported version of this patch into 4.2.
As with the previous
2011 Jun 27
20
[PATCH 0 of 5] v2: Nested-p2m cleanups and locking changes
This patch series tidies up a few bits ofthe nested p2m code.
The main thing it does is reorganize the locking so that most of the
changes to nested p2m tables happen only under the p2m lock, and the
nestedp2m lock is only needed to reassign p2m tables to new cr3 values.
Changes since v1:
- a few minor fixes
- more sensible flushing policy in p2m_get_nestedp2m()
- smoke-tested this time!
2011 Jan 17
8
[PATCH 0 of 3] Miscellaneous populate-on-demand bugs
This patch series includes a series of bugs related to p2m, ept, and
PoD code which were found as part of our XenServer product testing.
Each of these fixes actual bugs, and the 3.4-based version of the patch
has been tested thoroughly. (There may be bugs in porting the patches,
but most of them are simple enough as to make it unlikely.)
Each patch is conceptually independent, so they can each
2013 Dec 06
36
[V6 PATCH 0/7]: PVH dom0....
Hi,
V6: The only change from V5 is in patch #6:
- changed comment to reflect autoxlate
- removed a redundant ASSERT
- reworked logic a bit so that get_page_from_gfn() is called with NULL
for p2m type as before. arm has ASSERT wanting it to be NULL.
Tim: patch 4 needs your approval.
Daniel: patch 5 needs your approval.
These patches implement PVH dom0.
Patches 1 and 2
2007 Sep 28
18
[makedumpfile] extract vmcoreinfo from /proc/vmcore for Xen
Hi,
--- background ----------------------------------------------------
* what the makedumpfile is:
To shorten the size of the dumpfile and the time of creating the
dumpfile, makedumpfile copies only the necessary pages for analysis
to the dumpfile from /proc/vmcore. You can specify the kind of
unnecessary pages with dump_level. If you want to shorten the size
further, enable the