Subject: CVS commit: [bouyer-xen2] src/sys/arch/xen
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 01/18/2005 15:09:04
Module Name:	src
Committed By:	bouyer
Date:		Tue Jan 18 15:09:04 UTC 2005

Modified Files:
	src/sys/arch/xen/conf [bouyer-xen2]: files.xen
	src/sys/arch/xen/include [bouyer-xen2]: hypervisor.h
	src/sys/arch/xen/xen [bouyer-xen2]: hypervisor.c
Added Files:
	src/sys/arch/xen/include [bouyer-xen2]: pci_machdep.h
	src/sys/arch/xen/xen [bouyer-xen2]: pci_machdep.c pciide_machdep.c

Log Message:
snapshot of work in progress on physical devices support:
- support pci at hypervisor. Attach one PCI bus for each bus returned by
  PHYSDEVOP_PCI_PROBE_ROOT_BUSES (it looks like xen hides ppb bridges from
  the guest OS).
- implement pci_conf_read()/pci_conf_write() using the appropriate
  PHYSDEVOP_PCI_* calls.
- call PHYSDEVOP_PCI_INITIALISE_DEVICE from pci_intr_map() to make xen
  do interrupts routing if needed, and map the hardware interrupt to
  a xen interrupt.
- add pci and associated devices to files.xen

This is enouth to have IDE controllers work in PIO mode.
TODO: bus_dma support (currently bus_dma won't translate pseudo-physical
      addresses to machine addresses), ISA support, test memory-mapped
      I/O registers.


To generate a diff of this commit:
cvs rdiff -r1.14.4.2 -r1.14.4.3 src/sys/arch/xen/conf/files.xen
cvs rdiff -r1.9.2.2 -r1.9.2.3 src/sys/arch/xen/include/hypervisor.h
cvs rdiff -r0 -r1.1.2.1 src/sys/arch/xen/include/pci_machdep.h
cvs rdiff -r1.8.2.2 -r1.8.2.3 src/sys/arch/xen/xen/hypervisor.c
cvs rdiff -r0 -r1.1.2.1 src/sys/arch/xen/xen/pci_machdep.c \
    src/sys/arch/xen/xen/pciide_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.