qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCHv2] add "info ioapic" monitor command


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCHv2] add "info ioapic" monitor command
Date: Wed, 30 Dec 2009 17:04:53 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

On 12/30/2009 09:58 AM, Avi Kivity wrote:
On 12/30/2009 05:53 PM, Gleb Natapov wrote:

This assumes there is only one ioapic. While I don't think there's
a good reason to add more (the one we have is causing sufficient
trouble), I suggest returning an array of ioapics (or include
gsibase: [{ ioapic: object, gsibase: 0 }, { ioapic: object, gsibase:
24 }].

For the case of multiple ioapics I thought about extending the command
to get ioapic id as a parameter when time comes. gsibase is not know to
ioapic itself, so this info does not belong here.


Ok.

Here's a good example of why attacking device-info is a better general approach.

Right now, you only support one ioapic and you only display a portion of the device's state. In the future, it's likely that you'll want to support multiple ioapic (okay, maybe not likely, but possible), and it's very likely you'll want to include more state for the ioapic.

By definition, VMState contains all of the state of a device that's guest visible. That means from a debugging perspective, you are guaranteed to have all of the information you need for the particular device. Also, because it's necessarily to save multiple instances of a device with VMState, it automatically supports the ability to view multiple instances of a device.

Regards,

Anthony Liguori






reply via email to

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