qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC 00/10] ISA reconfigurability


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [RFC 00/10] ISA reconfigurability
Date: Tue, 07 Jun 2011 09:18:18 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10

  Hi,

This series proposes a new solution: helpers that reconfigure existing 
ISADevices.

It also contains a resend of a prerequisite patch with updated summary.

As for the remaining issue of enabling/disabling devices I'd like to hear
opinions on whether we should allow hot-plugging of these devices or
whether we should add an enabled/disabled state to a qdev device.

I'd tend to think having a enable/disable state (and a setstate callback in ISADeviceInfo) is easier to handle, especially wrt the host-side state of the device (i.e. the chardev).

Reconfiguration can be done this way then:

setstate(0)           ->  device unregisters irq + ports.
qdev_prop_set_*()     ->  updates iobase + irqs
setstate(1)           ->  device registers new irqs + ports.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]