From: Avi Kivity <avi@qumranet.com>
To: "Zhang, Xiantao" <xiantao.zhang@intel.com>
Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH] kvm/ia64: Add printk support for kvm-intel modules.
Date: Thu, 11 Sep 2008 11:12:59 +0300 [thread overview]
Message-ID: <48C8D30B.9040008@qumranet.com> (raw)
In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDC0196DC8D@pdsmsx415.ccr.corp.intel.com>
Zhang, Xiantao wrote:
>
>>> +static void vcpu_print_vmm_log(void)
>>> +{
>>> + unsigned int slot;
>>> +
>>> + spin_lock(&vmm_log->log_lock);
>>>
>>>
>> You're going to impact scalability with this. Are per-vcpu logs
>> workable?
>>
>
> OK, I will change it to per-vcpu style to avoid this possible
> scalability issue.
>
>
Actually, per-vcpu logs have a deficiency where log lines become unordered.
So I suggest a per-vcpu flag that says "there may be something in the
log", but keep a single log buffer. Since printk()s are rare (and
slow), it's enough that we make the case where the log is empty fast.
>> I suspect this will start breaking when people start using the new
>> printk("%pBLAH") functionality, which will require linking additional
>> files.
>>
>
> If the format string works with vsnprintf, it should be covered.
>
>
vsnprintf() may start to be linked with other stuff. Well, we'll deal
with that when it happens.
>> I can't think of a way on x86, but maybe ia64 varargs are different.
>>
>> (worst case you can limit the number of arguments and just copy a
>> bunch of stack).
>>
>
> That maybe infeasible, since some args may be transferred by pointer,
> and this pointer can't be reached in host side.
>
Okay.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
next prev parent reply other threads:[~2008-09-11 8:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-09 15:11 [PATCH] kvm/ia64: Add printk support for kvm-intel modules Zhang, Xiantao
2008-09-10 15:19 ` Avi Kivity
2008-09-11 3:15 ` Zhang, Xiantao
2008-09-11 8:12 ` Avi Kivity [this message]
2008-09-12 7:14 ` Zhang, Xiantao
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=48C8D30B.9040008@qumranet.com \
--to=avi@qumranet.com \
--cc=kvm-ia64@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=xiantao.zhang@intel.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