xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: AnhNN <ngocanh198@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Question about MMU update on HVM guest
Date: Fri, 13 May 2016 06:11:55 +0700	[thread overview]
Message-ID: <CAP6KD3hpHjvccRCAUR8cT0T0Bj27VR2P-iO_oPJvqLMDfCDK3Q@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1127 bytes --]

Hi,

I have some questions about MMU update operation.
I add some logging in function *do_mmu_update* (in file
/xen/arch/x86/mm.c), and start Windows 7 32 bit HVM guest.
After guest started, I look at log and see that MMU update has been called
with every page of guest, with *pt_ower = 0* and *pg_owner = 1*. And with
every page, MMU update called 2 times. The first time, * page->count_info =
0x8000000000000002* after MMU update, but after that it decrease to
*0x8000000000000001* in a different function. At the second time,
*page->count_info
= 0x8000000000000002* after MMU update, and keep that value forever.

So the question is, why domain 0 have a reference to every pages of HVM
guest ?
And why in the second time of MMU update, count_info doesn't decrease to
*0x8000000000000001* ?

Thanks & Best Regards.

-- 
Nguyễn Ngọc Anh
Student - Course 53
Department of Computer Engineering - School of Information and
Communication Technology
Hanoi University Of Science And Technology.
Mobile: 0973402195
Email: ngocanh198@gmail.com <hiepnp1990@gmail.com>
Y!M: pancuro
Skype: ngocanh19890

[-- Attachment #1.2: Type: text/html, Size: 1505 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

             reply	other threads:[~2016-05-12 23:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12 23:11 AnhNN [this message]
2016-05-18 11:39 ` Question about MMU update on HVM guest George Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP6KD3hpHjvccRCAUR8cT0T0Bj27VR2P-iO_oPJvqLMDfCDK3Q@mail.gmail.com \
    --to=ngocanh198@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).