From: Avi Kivity <avi@redhat.com>
To: Eric B Munson <emunson@mgebm.net>
Cc: mingo@redhat.com, hpa@zytor.com, ryanh@linux.vnet.ibm.com,
aliguori@us.ibm.com, mtosatti@redhat.com, kvm@vger.kernel.org,
linux-arch@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4 V13] Add ioctl for KVM_KVMCLOCK_CTRL
Date: Thu, 16 Feb 2012 16:11:40 +0200 [thread overview]
Message-ID: <4F3D0E9C.8030302@redhat.com> (raw)
In-Reply-To: <1328713666-11424-4-git-send-email-emunson@mgebm.net>
On 02/08/2012 05:07 PM, Eric B Munson wrote:
> Now that we have a flag that will tell the guest it was suspended, create an
> interface for that communication using a KVM ioctl.
>
> +
> +Capability: KVM_CAP_KVMCLOCK_CTRL
> +Architectures: Any that implement pvclocks (currently x86 only)
> +Type: vcpu ioctl
> +Parameters: None
> +Returns: 0 on success, -1 on error
> +
> +This signals to the host kernel that the specified guest is being paused by
> +userspace. The host will set a flag in the pvclock structure that is checked
> +from the soft lockup watchdog.
This needs to be expanded. There is a protocol between the host and
guest that needs to be documented, including the requirement to use a
single instruction (or ll/sc) to clear the flag. See
Documentation/virtual/kvm/msr.txt
> This ioctl can be called during pause or
> +unpause.
> +
After pausing the vcpu, but before resuming it.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2012-02-16 14:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 15:07 [PATCH 0/4 V13] Avoid soft lockup message when KVM is stopped by host Eric B Munson
2012-02-08 15:07 ` [PATCH 1/4 V13] Add flag to indicate that a vm was stopped by the host Eric B Munson
2012-02-08 15:07 ` [PATCH 2/4 V13] Add functions to check if the host has stopped the vm Eric B Munson
2012-02-10 16:05 ` Marcelo Tosatti
2012-02-08 15:07 ` [PATCH 3/4 V13] Add ioctl for KVM_KVMCLOCK_CTRL Eric B Munson
2012-02-16 14:11 ` Avi Kivity [this message]
2012-02-08 15:07 ` [PATCH 4/4 V13] Add check for suspended vm in softlockup detector Eric B Munson
2012-02-14 15:29 ` [PATCH 0/4 V13] Avoid soft lockup message when KVM is stopped by host Eric B Munson
2012-02-14 15:38 ` Marcelo Tosatti
2012-02-14 15:50 ` Eric B Munson
2012-02-14 16:10 ` Marcelo Tosatti
2012-02-14 21:17 ` Eric B Munson
2012-03-05 16:39 ` Marcelo Tosatti
2012-03-05 17:10 ` Eric B Munson
2012-03-10 19:53 ` Eric B Munson
-- strict thread matches above, loose matches on Subject: below --
2012-02-16 20:18 [PATCH 0/4 V14] " Eric B Munson
2012-02-16 20:19 ` [PATCH 3/4 V13] Add ioctl for KVM_KVMCLOCK_CTRL Eric B Munson
2012-02-16 20:22 ` Eric B Munson
2012-02-18 10:30 ` Avi Kivity
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=4F3D0E9C.8030302@redhat.com \
--to=avi@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=emunson@mgebm.net \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=mtosatti@redhat.com \
--cc=ryanh@linux.vnet.ibm.com \
--cc=x86@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
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).