qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest
           [not found] <cover.1362051581.git.hutao@cn.fujitsu.com>
           [not found] ` <664d63ad19ae6ec25a5a7bd6411c8ab7e289f632.1362051582.git.hutao@cn.fujitsu.com>
    @ 2013-03-03  9:17 ` Gleb Natapov
      2013-03-04 10:05   ` Paolo Bonzini
      2013-03-06  8:46   ` Hu Tao
           [not found] ` <df20999140db716e8b1ccd57a7cbcb0fa343a78c.1362051582.git.hutao@cn.fujitsu.com>
                       ` (4 subsequent siblings)
      6 siblings, 2 replies; 39+ messages in thread
    From: Gleb Natapov @ 2013-03-03  9:17 UTC (permalink / raw)
      To: Hu Tao
      Cc: Peter Maydell, kvm list, Michael S. Tsirkin, Jan Kiszka,
    	qemu-devel, Markus Armbruster, Blue Swirl, Orit Wasserman,
    	Juan Quintela, Alexander Graf, Andrew Jones, Alex Williamson,
    	Sasha Levin, Stefan Hajnoczi, Luiz Capitulino, KAMEZAWA Hiroyuki,
    	Kevin Wolf, Anthony Liguori, Marcelo Tosatti,
    	linux-kernel@vger.kernel.org, Paolo Bonzini
    
    On Thu, Feb 28, 2013 at 08:13:10PM +0800, Hu Tao wrote:
    > This series implements a new interface, kvm pv event, to notify host when
    > some events happen in guest. Right now there is one supported event: guest
    > panic.
    > 
    What other event do you have in mind? Is interface generic enough to
    accommodate future, yet unknown, events. It allows to pass only one
    integer specifying even type, what if additional info is needed? My be
    stop pretending that device is generic and make it do once thing but do
    it well? For generic even passing interface (whatever it may be needed
    for) much more powerful virtio should be used.
    
    On implementation itself I do not understand why is this kvm specific.
    The only thing that makes it so is that you hook device initialization
    into guest kvm initialization code, but this is obviously incorrect.
    What stops QEMU tcg or Xen from reusing the same device for the same
    purpose except the artificial limitation in a guest.
    
    Reading data from a random ioports is not how you discover platform
    devices in 21 century (and the data you read from unassigned port is not
    guarantied to be zero, it may depend on QEMU version), you use ACPI for
    that and Marcelo already pointed that to you. Having little knowledge of
    ACPI (we all do) is not a good reason to not doing it. We probably need
    to reserve QEMU specific ACPI Plug and Play hardware ID to define our own
    devices. After that you will be able to create device with _HID(QEMU0001)
    in DSDT that supplies address information (ioport to use) and capability
    supported. Guest uses acpi_get_devices() to discover a platform device by
    its name (QEMU0001).  Then you put the driver for the platform device
    into drivers/platform/x86/ and QEMU/kvm/Xen all will be able to use it.
    
    On QEMU side of things I cannot comment much on how QOMified the device
    is (it should be), I hope other reviews will verify it, but I noticed
    that device is only initialized for PIIX, what about Q35?
    
    --
    			Gleb.
    
    ^ permalink raw reply	[flat|nested] 39+ messages in thread
  • [parent not found: <df20999140db716e8b1ccd57a7cbcb0fa343a78c.1362051582.git.hutao@cn.fujitsu.com>]
  • [parent not found: <d1f8b5689b05b9db923d86941e914d08ac4c2b7c.1362051582.git.hutao@cn.fujitsu.com>]
  • [parent not found: <ab47cb1ef5a962848b2390d5b602b36aca1f149a.1362051582.git.hutao@cn.fujitsu.com>]
  • [parent not found: <1af3c134891e119a21268ac6c48434447a8f6ab2.1362051582.git.hutao@cn.fujitsu.com>]
  • [parent not found: <d7b92bed37f3669194b45acd8736b4b7ac71cc95.1362051582.git.hutao@cn.fujitsu.com>]

  • end of thread, other threads:[~2013-03-06  9:59 UTC | newest]
    
    Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <cover.1362051581.git.hutao@cn.fujitsu.com>
         [not found] ` <664d63ad19ae6ec25a5a7bd6411c8ab7e289f632.1362051582.git.hutao@cn.fujitsu.com>
    2013-03-01 16:31   ` [Qemu-devel] [PATCH v13 5/8] add a new qevent: QEVENT_GUEST_PANICKED Eric Blake
    2013-03-05  3:17     ` Hu Tao
    2013-03-04  9:40   ` Paolo Bonzini
    2013-03-03  9:17 ` [Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest Gleb Natapov
    2013-03-04 10:05   ` Paolo Bonzini
    2013-03-04 10:21     ` Gleb Natapov
    2013-03-04 10:28       ` Paolo Bonzini
    2013-03-04 10:43         ` Gleb Natapov
    2013-03-04 10:49           ` Paolo Bonzini
    2013-03-04 10:59             ` Gleb Natapov
    2013-03-04 11:10               ` Paolo Bonzini
    2013-03-04 11:20                 ` Gleb Natapov
    2013-03-04 11:35                   ` Paolo Bonzini
    2013-03-04 11:52                     ` Gleb Natapov
    2013-03-04 12:21                       ` Paolo Bonzini
    2013-03-06  8:56     ` Hu Tao
    2013-03-06  9:07       ` Paolo Bonzini
    2013-03-06  9:28         ` li guang
    2013-03-06  9:38         ` Gleb Natapov
    2013-03-06  9:48           ` Paolo Bonzini
    2013-03-06  9:59             ` Gleb Natapov
    2013-03-06  8:46   ` Hu Tao
    2013-03-06  9:37     ` Gleb Natapov
         [not found] ` <df20999140db716e8b1ccd57a7cbcb0fa343a78c.1362051582.git.hutao@cn.fujitsu.com>
         [not found]   ` <512FC845.9080209@redhat.com>
    2013-03-01  7:36     ` [Qemu-devel] [PATCH v13 1/8] save/load cpu runstate Hu Tao
    2013-03-01 16:29       ` Eric Blake
    2013-03-04  9:30   ` Paolo Bonzini
    2013-03-05  2:33     ` Hu Tao
    2013-03-05  8:24       ` Paolo Bonzini
         [not found] ` <d1f8b5689b05b9db923d86941e914d08ac4c2b7c.1362051582.git.hutao@cn.fujitsu.com>
    2013-03-04  9:32   ` [Qemu-devel] [PATCH v13 2/8] start vm after resetting it Paolo Bonzini
    2013-03-05  3:06     ` Hu Tao
         [not found]   ` <512F5A5E.9020504@siemens.com>
    2013-03-05  3:05     ` Hu Tao
         [not found] ` <ab47cb1ef5a962848b2390d5b602b36aca1f149a.1362051582.git.hutao@cn.fujitsu.com>
    2013-03-04  9:40   ` [Qemu-devel] [PATCH v13 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED Paolo Bonzini
    2013-03-05  3:17     ` Hu Tao
    2013-03-05  8:26       ` Paolo Bonzini
    2013-03-06  9:03         ` Hu Tao
         [not found] ` <1af3c134891e119a21268ac6c48434447a8f6ab2.1362051582.git.hutao@cn.fujitsu.com>
    2013-03-04  9:47   ` [Qemu-devel] [PATCH v13 7/8] allower the user to disable pv event support Paolo Bonzini
         [not found] ` <d7b92bed37f3669194b45acd8736b4b7ac71cc95.1362051582.git.hutao@cn.fujitsu.com>
    2013-03-04  9:42   ` [Qemu-devel] [PATCH v13 6/8] introduce a new qom device to deal with panicked event Paolo Bonzini
    2013-03-04 10:10   ` Christian Borntraeger
    2013-03-04 10:21     ` Paolo Bonzini
    

    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).