KVM Archive on lore.kernel.org
 help / color / Atom feed
From: xitler adole <zqyleo@gmail.com>
To: kvm@vger.kernel.org
Subject: problems about EPT in kvm
Date: Fri, 27 Mar 2020 11:54:56 +0800
Message-ID: <CA+9FcC=PGZ76Tj5Sn1se-GkjpiQDUunKM0fzpdKRzvivTkiEqw@mail.gmail.com> (raw)

Dear developer:

I am facing confusing problems, there is no way for me to figure it
out, so I have to ask for help:

1.  I am using the <asm/kvm_host.h> <linux/kvm_host.h> for using kvm
in my module, but there are always some function undefined like
kvm_arch_mmu_notifier_invalidate_range. Are those functions not
visiable from outside?

2.   With the ept technology, If I use "alloc_page" inside the guest
virtual machine, and use "page_to_pfn" to get the pfn of the certain
page, Is the pfn I get the gfn or the pfn of the host machine?

3.  I want to modify the EPT table, so that I can make the gva point
to certain hpa just to share information between vm, Given the
condition that I can not modify the kvm code, Is that possible?

4. Do you have some technology about sharing memory between virtual
machine with some example code?

sorry for trouble, but I really find it hart to solve it only by myself.

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27  3:54 xitler adole [this message]
2020-03-27 13:58 ` Vitaly Kuznetsov

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='CA+9FcC=PGZ76Tj5Sn1se-GkjpiQDUunKM0fzpdKRzvivTkiEqw@mail.gmail.com' \
    --to=zqyleo@gmail.com \
    --cc=kvm@vger.kernel.org \
    /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

KVM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kvm/0 kvm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kvm kvm/ https://lore.kernel.org/kvm \
		kvm@vger.kernel.org
	public-inbox-index kvm

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.kvm


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git