public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Ani Sinha <anisinha@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	 qemu-trivial@nongnu.org,  Zhao Liu <zhao1.liu@intel.com>,
	 kvm@vger.kernel.org,  qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH v5 1/2] kvm: replace fprintf with error_report()/printf() in kvm_init()
Date: Wed, 28 Aug 2024 15:16:55 +0200	[thread overview]
Message-ID: <874j74rdmg.fsf@pond.sub.org> (raw)
In-Reply-To: <E66A6507-F348-49F9-8887-1CE24A5827EF@redhat.com> (Ani Sinha's message of "Wed, 28 Aug 2024 18:10:24 +0530")

Ani Sinha <anisinha@redhat.com> writes:

>> On 28 Aug 2024, at 4:53 PM, Markus Armbruster <armbru@redhat.com> wrote:
>> 
>> Ani Sinha <anisinha@redhat.com> writes:
>> 
>>> error_report() is more appropriate for error situations. Replace fprintf with
>>> error_report() and error_printf() as appropriate. Cosmetic. No functional
>>> change.
>> 
>> Uh, I missed this last time around: the change is more than just
>> cosmetics!  The error messages change, e.g. from
>> 
>>    $ qemu-system-x86_64 -nodefaults -S -display none --accel kvm
>>    qemu-system-x86_64: --accel kvm: Could not access KVM kernel module: Permission denied
>>    qemu-system-x86_64: --accel kvm: failed to initialize kvm: Permission denied
>> 
>> to
>> 
>>    $ qemu-system-x86_64 -nodefaults -S -display none --accel kvm
>>    Could not access KVM kernel module: Permission denied
>>    qemu-system-x86_64: --accel kvm: failed to initialize kvm: Permission denied
>
> You got this backwards. This is what I have:

I do!  Sorry %-}

[...]


  reply	other threads:[~2024-08-28 13:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20240828075630.7754-1-anisinha@redhat.com>
2024-08-28  7:56 ` [PATCH v5 1/2] kvm: replace fprintf with error_report()/printf() in kvm_init() Ani Sinha
2024-08-28 11:23   ` Markus Armbruster
2024-08-28 12:40     ` Ani Sinha
2024-08-28 13:16       ` Markus Armbruster [this message]
2024-08-28  7:56 ` [PATCH v5 2/2] kvm: refactor core virtual machine creation into its own function Ani Sinha

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=874j74rdmg.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=anisinha@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=zhao1.liu@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