Skip to contentSkip to conversation

xen: implement vector callback for evtchn delivery

PATCH Boris Derzhavets 2 participants 5 messages May 28, 2010

lore
Share & tools
lore
#0 lore raw

I redefined DomU via profile :-

<domain type='xen' >
  <name>LucidHVM</name>
  <memory>2097152</memory> <currentMemory>2097152</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash>
  <devices> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/sda7'/>
      <target dev='xvda' bus='xen'/>   - instead of 'ide' </disk>
    <interface type='bridge'>
      <mac address='00:16:36:2a:cd:af'/>
      <source bridge='br0'/>
      <script path='/etc/xen/scripts/vif-bridge'/> <target dev='vif1.0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/> <sound model='es1370'/>
  </devices>
</domain>

dmesg.log is attached.

Boris.

--- On Fri, 5/28/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH] xen: implement vector callback for evtchn delivery
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Keir Fraser" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, May 28, 2010, 11:59 AM

Quoted 8 lines · Boris Derzhavets

<disk type="block" device="disk">
<driver name="phy"/>
<source dev="/dev/sda7"/>
<target dev="hda" bus="ide"/>
</disk>
<disk type="file" device="cdrom">
<target dev="hdc" bus="ide"/>
<readonly/>

I am pretty sure that the interrupts on the ata_piix device are due to the cdrom that has been used through the emulated interface. Using xend/xl, it is possible to make sure your guest can use the pv interface for the cdrom too, specifying xvdc instead of hdc as virtual device:

disk = [ 'file:/path/to/iso,xvdc:cdrom,r' ]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 48 lines · Boris Derzhavets

I redefined DomU via profile :-

<domain type='xen' >
  <name>LucidHVM</name>
  <memory>2097152</memory> <currentMemory>2097152</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash>
  <devices> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/sda7'/>
      <target dev='xvda' bus='xen'/>   - instead of 'ide' </disk>
    <interface type='bridge'>
      <mac address='00:16:36:2a:cd:af'/>
      <source bridge='br0'/>
      <script path='/etc/xen/scripts/vif-bridge'/> <target dev='vif1.0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/> <sound model='es1370'/>
  </devices>
</domain>

Quoted 2 lines

dmesg.log is attached.

I think it should be OK now

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

It stays the same as well as dmesg log been sent.

root@LucidSRV:~# cat /proc/interrupts
           CPU0       CPU1       
  0:         30          0   IO-APIC-edge      timer
  1:         29        102   IO-APIC-edge      i8042
  4:          1          0   IO-APIC-edge    
  6:          2          0   IO-APIC-edge      floppy
  8:          0          0   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        325          7   IO-APIC-edge      i8042
 14:          0          0   IO-APIC-edge      ata_piix
 15:          0          0   IO-APIC-edge      ata_piix
 16:        196          0   xen-dyn-event     xenbus
 17:       5057          0   xen-dyn-event     blkif
 18:        109          0   xen-dyn-event     eth0
 23:          0          0   IO-APIC-fasteoi   uhci_hcd:usb1
 36:          0          0   IO-APIC-fasteoi   Ensoniq AudioPCI
NMI:          0          0   Non-maskable interrupts
LOC:       2712       2532   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
PND:          0          0   Performance pending work
PLT:       5139          0   Platform interrupts
RES:       1451       1562   Rescheduling interrupts
CAL:        117        103   Function call interrupts
TLB:        222        185   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:          1          1   Machine check polls
ERR:          0
MIS:          0

Is it OK ?

Boris.

--- On Fri, 5/28/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH] xen: implement vector callback for evtchn delivery
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Keir Fraser" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, May 28, 2010, 12:55 PM

Quoted 48 lines · Boris Derzhavets

I redefined DomU via profile :-

<domain type='xen' >
  <name>LucidHVM</name>
  <memory>2097152</memory> <currentMemory>2097152</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash>
  <devices> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/sda7'/>
      <target dev='xvda' bus='xen'/>   - instead of 'ide' </disk>
    <interface type='bridge'>
      <mac address='00:16:36:2a:cd:af'/>
      <source bridge='br0'/>
      <script path='/etc/xen/scripts/vif-bridge'/> <target dev='vif1.0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/> <sound model='es1370'/>
  </devices>
</domain>

Quoted 2 lines

dmesg.log is attached.

I think it should be OK now
-----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw
In reply to Stefano Stabellini

Got it.
Thank you.

--- On Fri, 5/28/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH] xen: implement vector callback for evtchn delivery
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Keir Fraser" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, May 28, 2010, 1:21 PM

Quoted 35 lines · Boris Derzhavets

It stays the same as well as dmesg log been sent.

root@LucidSRV:~# cat /proc/interrupts
           CPU0       CPU1      
  0:         30          0   IO-APIC-edge      timer
  1:         29        102   IO-APIC-edge      i8042
  4:          1          0   IO-APIC-edge   
  6:          2          0   IO-APIC-edge      floppy
  8:          0          0   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        325          7   IO-APIC-edge      i8042
 14:          0          0   IO-APIC-edge      ata_piix
 15:          0          0   IO-APIC-edge      ata_piix
 16:        196          0   xen-dyn-event     xenbus
 17:       5057          0   xen-dyn-event     blkif
 18:        109          0   xen-dyn-event     eth0
 23:          0          0   IO-APIC-fasteoi   uhci_hcd:usb1
 36:          0          0   IO-APIC-fasteoi   Ensoniq AudioPCI
NMI:          0          0   Non-maskable interrupts
LOC:       2712       2532   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
PND:          0          0   Performance pending work
PLT:       5139          0   Platform interrupts
RES:       1451       1562   Rescheduling interrupts
CAL:        117        103   Function call interrupts
TLB:        222        185   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:          1          1   Machine check polls
ERR:          0
MIS:          0
Quoted 1 line

Is it OK ?

Yep, no more interrupts for your ata_piix devices
-----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
In reply to Boris Derzhavets
Quoted 35 lines · Boris Derzhavets

It stays the same as well as dmesg log been sent.

root@LucidSRV:~# cat /proc/interrupts
           CPU0       CPU1      
  0:         30          0   IO-APIC-edge      timer
  1:         29        102   IO-APIC-edge      i8042
  4:          1          0   IO-APIC-edge   
  6:          2          0   IO-APIC-edge      floppy
  8:          0          0   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        325          7   IO-APIC-edge      i8042
 14:          0          0   IO-APIC-edge      ata_piix
 15:          0          0   IO-APIC-edge      ata_piix
 16:        196          0   xen-dyn-event     xenbus
 17:       5057          0   xen-dyn-event     blkif
 18:        109          0   xen-dyn-event     eth0
 23:          0          0   IO-APIC-fasteoi   uhci_hcd:usb1
 36:          0          0   IO-APIC-fasteoi   Ensoniq AudioPCI
NMI:          0          0   Non-maskable interrupts
LOC:       2712       2532   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
PND:          0          0   Performance pending work
PLT:       5139          0   Platform interrupts
RES:       1451       1562   Rescheduling interrupts
CAL:        117        103   Function call interrupts
TLB:        222        185   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:          1          1   Machine check polls
ERR:          0
MIS:          0
Quoted 1 line

Is it OK ?

Yep, no more interrupts for your ata_piix devices

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel