a xen question
Ahn, the backends and frontends depends on which version of the kernel you're using. Do you want to look at the pv-ops kernel (the long-term future), or the xen-linux kernel (a fork which will never make it as-is into Linux, but is ATM more widely used)?
Stefano, which devices are enabled in qemu in our Xen tree? Can you give Anh some pointers on how to find out which files correspond to those devices? Thanks!
-George
Quoted 26 lines · Anh Nguyen
Hi George,
I want to measure the size of Xen virtual devices (in term of lines of code), for both HVM and PV guests. From what I learnt, Xen uses Qemu daemon running in Dom 0 to emulate virtual devices for HVM guests. For PV guests, backend devices in Dom 0 talks to frontend devices in Dom U. I tried to post this question to xen-devel list but they did not go through. I would really appreciate if you could help me to answer them, or point me to the right direction:
1. What devices are offered to Xen HVM guests, what about Xen PV guests?
2. Where can I find the source code for those devices?
Thanks a lot,
AnhQuoted 10 lines · Sam King
Hi George,
One of my students, Anh (included in this email), has some questions about Xen. He has tried posting to the newsgroup without much luck, I was hoping that you could either answer his questions or point him in the right direction.
Cheers,
Sam
Hi George,
I am interested in the xen-linux kernel for PV guests.
For HVM guests, I find it a bit difficult to pinpoint exactly what devices are enabled because the ioemu-qemu-xen directory inside xen source seems to contain a lot of code not used by xen.
Thanks,
Quoted 29 lines · George Dunlap
Ahn, the backends and frontends depends on which version of the kernel you're using. Do you want to look at the pv-ops kernel (the long-term future), or the xen-linux kernel (a fork which will never make it as-is into Linux, but is ATM more widely used)?
Stefano, which devices are enabled in qemu in our Xen tree? Can you give Anh some pointers on how to find out which files correspond to those devices? Thanks!
-George
Quoted 4 lines · Anh Nguyen
Hi George,
I want to measure the size of Xen virtual devices (in term of lines of code), for both HVM and PV guests. From what I learnt, Xen uses Qemu daemon running in Dom 0 to emulate virtual devices for HVM guests.For
Quoted 2 lines
PV guests, backend devices in Dom 0 talks to frontend devices in Dom U. I tried to post this question to xen-devel list but they did not go
through.
Quoted 1 line
I would really appreciate if you could help me to answer them, or point
me
Quoted 6 lines
to the right direction:
1. What devices are offered to Xen HVM guests, what about Xen PV guests?
2. Where can I find the source code for those devices? Thanks a lot,
Anh
Quoted 16 lines
Quoted 5 lines · Sam King
Quoted 4 lines
Hi George,
One of my students, Anh (included in this email), has some questions
about
Quoted 1 line
Quoted 1 line
Xen. He has tried posting to the newsgroup without much luck, I was
hoping
Quoted 7 lines
Quoted 5 lines
that you could either answer his questions or point him in the right direction.
Cheers,
Sam
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 9 lines · George Dunlap
Ahn, the backends and frontends depends on which version of the kernel you're using. Do you want to look at the pv-ops kernel (the long-term future), or the xen-linux kernel (a fork which will never make it as-is into Linux, but is ATM more widely used)?
Stefano, which devices are enabled in qemu in our Xen tree? Can you give Anh some pointers on how to find out which files correspond to those devices? Thanks!
Just starting a Linux HVM guest and executing lspci in the guest is a good start :)
The entry to point to start all the emulated devices in qemu is pc_init1 in hw/pc.c, from there you can find out all the initialization functions of the emulated hardware provided by qemu to the guest.
The main ones are the graphic card (two models available:hw/cirrus_vga.c and hw/vga.c), network cards (two models available:hw/e1000.c, hw/rtl8139.c), PIIX4 (hw/piix4acpi.c), PIIX3 (hw/piix_pci.c, hw/ide.c, hw/usb-uhci.c), usb devices (hw/usb-hid.c), the xen pci platofirm device (hw/xen_platform.c) and the serial card (hw/serial.c).
Thanks Stefano,
I looked into the code and this is what I got. Does this look right to you?
Audio ES1370 emulation es1370.c Soundblaster 16 emulation sb16.c Graphic VGA Emulator vga* Cirrus CLGD 54xx VGA Emulator cirrus_vga.c Xen Console xen_console.c QEMU VNC display driver ..\vnc.c Net e1000 Ethernet emulation e1000* NE2000 emulation ne2000.c QEMU RTL8139 emulation rtl8139.c PC System Emulator pc.c, ..\vl.c PCI pci* PCI MSI support pt-msi.c QEMU PC keyboard emulation pckbd.c QEMU VMMouse emulation vmmouse.c PS/2 Port ps2* QEMU MC146818 RTC emulation mc146818rtc.c usb usb*, ..\usb* Battery Management battery_mgmt* DMA emulation dma.c, ..\dma* Floppy disk emulator (Intel 82078) fdc* QEMU IDE disk and CD/DVD-ROM Emulator ide.c, cdrom.c LSI53C895A SCSI Host Bus Adapter emulation lsi53c895a.c ACPI & PIIX acpi, piix* QEMU 8253/8254 interval timer emulation i8254.c QEMU 8259 interrupt controller emulation i8259.c QEMU Parallel PORT emulation parallel.c PC speaker emulation pcspk.c APIC apic.c ISA Bus isa* 16550A UART emulation serial.c SCSI Device emulation scsi* TPM tpm* High Precisition Event Timer emulation hpet* QEMU I2C bus interface i2c* SMBus device emulation smbus* Virtio Devices virtio* VMPort emulation vmport.c XEN event channel device xen_platform* Xen paravirt framebuffer xenfb*, ..\xenfbfront.c XenStore ..\xenstore.c
Best,
Quoted 15 lines · Stefano Stabellini
Quoted 9 lines · George Dunlap
Ahn, the backends and frontends depends on which version of the kernel you're using. Do you want to look at the pv-ops kernel (the long-term future), or the xen-linux kernel (a fork which will never make it as-is into Linux, but is ATM more widely used)?
Stefano, which devices are enabled in qemu in our Xen tree? Can you give Anh some pointers on how to find out which files correspond to those devices? Thanks!
Just starting a Linux HVM guest and executing lspci in the guest is a good start :)
Quoted 12 lines
The entry to point to start all the emulated devices in qemu is
pc_init1inhw/pc.c, from there you can find out all the initialization functions of the emulated hardware provided by qemu to the guest.
The main ones are the graphic card (two models available:hw/cirrus_vga.candhw/vga.c), network cards (two models available:hw/e1000.c,hw/rtl8139.c), PIIX4 (hw/piix4acpi.c), PIIX3 (hw/piix_pci.c,hw/ide.c,hw/usb-uhci.c), usb devices (hw/usb-hid.c), the xen pci platofirm device (hw/xen_platform.c) and the serial card (hw/serial.c).
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Sorry. The table format was lost in the previous email.
Audio
ES1370 emulation es1370.c
Soundblaster 16 emulation sb16.c
Graphic
VGA Emulator vga*
Cirrus CLGD 54xx VGA Emulator cirrus_vga.c
Xen Console xen_console.c
QEMU VNC display driver ..\vnc.c
Net
e1000 Ethernet emulation e1000*
NE2000 emulation ne2000.c
QEMU RTL8139 emulation rtl8139.c
Other
PC System Emulator pc.c, ..\vl.c
PCI pci*
PCI MSI support pt-msi.c
QEMU PC keyboard emulation pckbd.c
QEMU VMMouse emulation vmmouse.c
PS/2 Port ps2*
QEMU MC146818 RTC emulation mc146818rtc.c
usb usb*, ..\usb*
Battery Management battery_mgmt*
DMA emulation dma.c, ..\dma*
Floppy disk emulator (Intel 82078) fdc*
QEMU IDE disk and CD/DVD-ROM Emulator ide.c, cdrom.c LSI53C895A SCSI Host Bus Adapter emulation lsi53c895a.c ACPI & PIIX acpi, piix*
QEMU 8253/8254 interval timer emulation i8254.c QEMU 8259 interrupt controller emulation i8259.c QEMU Parallel PORT emulation parallel.c
PC speaker emulation pcspk.c
APIC apic.c
ISA Bus isa*
16550A UART emulation serial.c
SCSI Device emulation scsi*
TPM tpm*
High Precisition Event Timer emulation hpet* QEMU I2C bus interface i2c*
SMBus device emulation smbus*
Virtio Devices virtio*
VMPort emulation vmport.c
XEN event channel device xen_platform*
Xen paravirt framebuffer xenfb*, ..\xenfbfront.c XenStore ..\xenstore.c
-Anh
Quoted 23 lines · Anh Nguyen
Thanks Stefano,
I looked into the code and this is what I got. Does this look right to you?
Audio ES1370 emulation
es1370.cSoundblaster 16 emulationsb16.cGraphic VGA Emulator vga* Cirrus CLGD 54xx VGA Emulatorcirrus_vga.cXen Consolexen_console.cQEMU VNC display driver ..\vnc.c Net e1000 Ethernet emulation e1000* NE2000 emulationne2000.cQEMU RTL8139 emulationrtl8139.cPC System Emulatorpc.c, ..\vl.c PCI pci* PCI MSI supportpt-msi.cQEMU PC keyboard emulationpckbd.cQEMU VMMouse emulationvmmouse.cPS/2 Port ps2* QEMU MC146818 RTC emulationmc146818rtc.cusb usb*, ..\usb* Battery Management battery_mgmt* DMA emulationdma.c, ..\dma* Floppy disk emulator (Intel 82078) fdc* QEMU IDE disk and CD/DVD-ROM Emulatoride.c,cdrom.cLSI53C895A SCSI Host Bus Adapter emulationlsi53c895a.cACPI & PIIX acpi, piix* QEMU 8253/8254 interval timer emulationi8254.cQEMU 8259 interrupt controller emulationi8259.cQEMU Parallel PORT emulationparallel.cPC speaker emulationpcspk.cAPICapic.cISA Bus isa* 16550A UART emulationserial.cSCSI Device emulation scsi* TPM tpm* High Precisition Event Timer emulation hpet* QEMU I2C bus interface i2c* SMBus device emulation smbus* Virtio Devices virtio* VMPort emulationvmport.cXEN event channel device xen_platform* Xen paravirt framebuffer xenfb*, ..\xenfbfront.c XenStore ..\xenstore.c
Quoted 35 lines
Best,
Quoted 27 lines · Stefano Stabellini
Quoted 9 lines · George Dunlap
Ahn, the backends and frontends depends on which version of the kernel you're using. Do you want to look at the pv-ops kernel (the long-term future), or the xen-linux kernel (a fork which will never make it as-is into Linux, but is ATM more widely used)?
Stefano, which devices are enabled in qemu in our Xen tree? Can you give Anh some pointers on how to find out which files correspond to those devices? Thanks!
Just starting a Linux HVM guest and executing lspci in the guest is a good start :)
The entry to point to start all the emulated devices in qemu is
pc_init1inhw/pc.c, from there you can find out all the initialization functions of the emulated hardware provided by qemu to the guest.
The main ones are the graphic card (two models available:hw/cirrus_vga.candhw/vga.c), network cards (two models available:hw/e1000.c,hw/rtl8139.c), PIIX4 (hw/piix4acpi.c), PIIX3 (hw/piix_pci.c,hw/ide.c,hw/usb-uhci.c), usb devices (hw/usb-hid.c), the xen pci platofirm device (hw/xen_platform.c) and the serial card (hw/serial.c).
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 9 lines · Anh Nguyen
Sorry. The table format was lost in the previous email. Audio
ES1370 emulationes1370.c
Soundblaster 16 emulationsb16.c
Graphic
VGA Emulator vga*
Cirrus CLGD 54xx VGA Emulatorcirrus_vga.cXen Console
xen_console.c
this is not emulated hardware but a paravirtualized backend for PV guests
Quoted 1 line
QEMU VNC display driver ..\vnc.c
this is just a qemu display driver, to render the guest framebuffer using vnc
Quoted 8 lines
Net
e1000 Ethernet emulation e1000*
NE2000 emulationne2000.c
QEMU RTL8139 emulationrtl8139.c
Other
PC System Emulatorpc.c, ..\vl.c
PCI pci*
PCI MSI supportpt-msi.c
pt-msi and pass-through.c are for direct assignment of real pci devices to the guest
Quoted 2 lines
QEMU PC keyboard emulation
pckbd.c
QEMU VMMouse emulationvmmouse.c
I don't think we use this
Quoted 2 lines
PS/2 Port ps2*
QEMU MC146818 RTC emulationmc146818rtc.c
the rtc emulator is in xen
Quoted 9 lines
usb usb*, ..\usb*
Battery Management battery_mgmt*
DMA emulationdma.c, ..\dma*
Floppy disk emulator (Intel 82078) fdc*
QEMU IDE disk and CD/DVD-ROM Emulatoride.c,cdrom.cLSI53C895A SCSI Host Bus Adapter emulationlsi53c895a.cACPI & PIIX acpi, piix*
QEMU 8253/8254 interval timer emulationi8254.cQEMU 8259 interrupt controller emulationi8259.c
both the timer and interrupt controller emulators are in xen
Quoted 3 lines
QEMU Parallel PORT emulation
parallel.c
PC speaker emulationpcspk.c
APICapic.c
the apic emulator is in xen
Quoted 1 line
ISA Bus isa*
we don't use this
Quoted 4 lines
16550A UART emulation
serial.c
SCSI Device emulation scsi*
TPM tpm*
High Precisition Event Timer emulation hpet*
the hpet emulator is in xen
Quoted 1 line
QEMU I2C bus interface i2c*
we don't use these
Quoted 1 line
SMBus device emulation smbus*
we don't use these
Quoted 1 line
Virtio Devices virtio*
we don't use these
Quoted 1 line
VMPort emulation
vmport.c
we don't use this
Quoted 2 lines
XEN event channel device xen_platform*
Xen paravirt framebuffer xenfb*, ..\xenfbfront.c
this is not emulated hardware but another PV backend for PV guests
Quoted 2 lines
XenStore ..\xenstore.c
this is to interface qemu with xenstore
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel