Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1206069 > unrolled thread

Re: Problem with error paths in various functions calling kvm_io_bus_unregister_dev

Started byPaolo Bonzini <pbonzini@redhat.com>
First post2015-08-12 15:20 +0200
Last post2015-08-12 15:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Problem with error paths in various functions calling  kvm_io_bus_unregister_dev Paolo Bonzini <pbonzini@redhat.com> - 2015-08-12 15:20 +0200

#1206069 — Re: Problem with error paths in various functions calling kvm_io_bus_unregister_dev

FromPaolo Bonzini <pbonzini@redhat.com>
Date2015-08-12 15:20 +0200
SubjectRe: Problem with error paths in various functions calling kvm_io_bus_unregister_dev
Message-ID<pWE6J-5sr-5@gated-at.bofh.it>

On 11/08/2015 16:02, nick wrote:
> Our we to just assume
> that calls to kvm_io_bug_unregister_dev always succeed as I disagree due to
> it allocating memory in kernel space that can easily fail. In additon I
> was wondering how the maintainers would like me to handle these calls as
> it's difficult due to it already being in error paths. Further more below
> is a link to the files and how the calls to kvm_io_bus_register_dev are 
> executed in the respective error paths.
> http://lxr.free-electrons.com/ident?i=kvm_io_bus_unregister_dev

You're right; the fix is not simple.  The best way is to introduce a new
API to register or unregister multiple devices atomically.  This gets
rid of calls in the error paths.


Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web