WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [RFC] Disable xen platform device when it is not needed.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [RFC] Disable xen platform device when it is not needed.
From: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Date: Wed, 18 Feb 2009 09:15:43 +0900
Delivery-date: Tue, 17 Feb 2009 16:16:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I plan to create the patch to disable xen platform device when it
is not needed. Please let me know if anyone has a comment.

Windows guest shows xen platform device as unknown
device with "!" mark in the device manager, when PV drivers are not
loaded. So I'd like to disable xen platform device.

If following conditions are all true, I will disable xen platform
device. Otherwise, xen platform device will be enabled.

    - All entries in "disk" parameter have "ioemu:" prefix in DEV field.
        Example:
        disk = [ '/var/images/guest.img,ioemu:hda,w', ',ioemu:hdc:cdrom,r' ]

    - All entries in "vif" parameter have "type=ioemu".
        Example:
        vif = [ 'type=ioemu, bridge=eth0', 'type=ioemu, bridge=eth1' ]

    - "vscsi" parameter is not specified.

Xen platform device has functions for PV drivers and guest
firmware (hvmloader and rombios). The functions for PV drivers will be
disabled when xen platform device is disabled. This is no problem. But
the function for guest firmware should not be disabled.

I will move the function for guest firmware from xen platform device
to host bridge. The interface between host bridge and guest firmware
will be in PCI configuration space, because host bridge does not have
io resource and memory resource.

The function which I will move is switching RW/RO state of ROM memory
area. Please refer
qemu-xen/hw/xen_platform.c:xen_platform_ioport_writeb. I will not move
the other functions.

Thanks,
--
Yuji Shimada


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel