mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Akshay Karle <akshay.a.karle@gmail.com>,
	Konrad Wilk <konrad.wilk@oracle.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
	ashu tripathi <er.ashutripathi@gmail.com>,
	nishant gulhane <nishant.s.gulhane@gmail.com>,
	Shreyas Mahure <shreyas.mahure@gmail.com>,
	amarmore2006 <amarmore2006@gmail.com>,
	mahesh mohan <mahesh6490@gmail.com>
Subject: RE: [RFC 1/2] kvm: host-side changes for tmem on KVM
Date: Thu, 15 Mar 2012 12:44:40 -0700 (PDT)	[thread overview]
Message-ID: <accb8b79-4642-4ab0-9e8e-27db775675ad@default> (raw)
In-Reply-To: <1331836868.2215.43.camel@aks>

> From: Akshay Karle [mailto:akshay.a.karle@gmail.com]
> Subject: Re: [RFC 1/2] kvm: host-side changes for tmem on KVM
> 
> >> Working at host:
> >> Once the guest exits to the kvm host, the host determines that the guest exited
> >> to perform some tmem operation(done at kvm_emulate_hypercall)and then
> >> we use zcache to implement this required operations(performed by kvm_pv_tmem_op).
> >
> > Do you need any modifications to the Kconfig file to reflect the KVM dependency?
> 
> Yeah, the Kconfig of zcache now needs to be modified to reflect the KVM and the KVM_INTEL or
> KVM_AMD dependency. The Kconfig can also be modified to support tmem for the guest kernels,
> as the zcache code is not at all used in the guest, only the kvm-tmem, cleancache and
> frontswap(if present) code is used in the guest. But, in the host its necessary to enable zcache.
> So the Kconfig can be modified to have the following new field:
> "Transcendent memory support for kvm guests".... Which would compile just the kvm-tmem code.
> And we can add Cleancache and Frontswap as dependencies(similar to zcache).
> 
> But it should be made sure that the host kernel has zcache enabled..

If the host kernel does not have zcache enabled, it may return
the value for "unimplemented hypercall".  The kvm tmem code in
the guest should be prepared for that as it may even be running
on an older kvm host.

  reply	other threads:[~2012-03-15 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 16:54 Akshay Karle
2012-03-08 17:37 ` Bobby Powers
2012-03-15 16:54 ` Konrad Rzeszutek Wilk
2012-03-15 18:41   ` Akshay Karle
2012-03-15 19:44     ` Dan Magenheimer [this message]
2012-03-15 19:51     ` Dan Magenheimer
2012-03-17 18:02       ` Akshay Karle
2012-03-18 19:52         ` Dan Magenheimer

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=accb8b79-4642-4ab0-9e8e-27db775675ad@default \
    --to=dan.magenheimer@oracle.com \
    --cc=akshay.a.karle@gmail.com \
    --cc=amarmore2006@gmail.com \
    --cc=er.ashutripathi@gmail.com \
    --cc=konrad.wilk@oracle.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mahesh6490@gmail.com \
    --cc=nishant.s.gulhane@gmail.com \
    --cc=shreyas.mahure@gmail.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

all inboxes | Powered by JetHome®