FreeBSD VirtIO Disk

вопросы по устройству ВДС, ресурсам, предустановленному софту и т.д.

Модераторы: Art.i, garry

FreeBSD VirtIO Disk

Сообщение Mikanoshi » Сб авг 27, 2016 2:48 pm

Поставил FreeBSD 11.0-RC2 из образа, диск (SSD) в VM менеджере стоит virtio, сам virtio скомпилирован в ядре, сетевой адаптер определяется как vtnet0, а вот диск не хочет, остался da0 вместо vtbd0.
Так ведь не должно быть?
Verbose dmesg:
Код: выделить все
Table 'FACP' at 0xbffff177
Table 'SSDT' at 0xbffff1eb
Table 'APIC' at 0xbffffae5
APIC: Found table at 0xbffffae5
APIC: Using the MADT enumerator.
MADT: Found CPU APIC ID 0 ACPI ID 0: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 1: enabled
SMP: Added CPU 1 (AP)
MADT: Found CPU APIC ID 2 ACPI ID 2: enabled
SMP: Added CPU 2 (AP)
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-RC2 #0 r304729: Wed Aug 24 06:59:03 UTC 2016
    root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
Table 'FACP' at 0xbffff177
Table 'SSDT' at 0xbffff1eb
Table 'APIC' at 0xbffffae5
ACPI: No SRAT table found
PPIM 0: PA=0xb8000, VA=0xffffffff82210000, size=0x8000, mode=0
VT(vga): text 80x25
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff821ae000.
Preloaded /boot/entropy "/boot/entropy" at 0xffffffff821aecb0.
Preloaded elf obj module "/boot/kernel/accf_data.ko" at 0xffffffff821aed00.
Preloaded elf obj module "/boot/kernel/accf_http.ko" at 0xffffffff821af1b0.
Calibrating TSC clock ... TSC clock: 2593693122 Hz
CPU: QEMU Virtual CPU version 1.5.3 (2593.69-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x6d3  Family=0x6  Model=0xd  Stepping=3
  Features=0x783fbfd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
  Features2=0x80002001<SSE3,CX16,HV>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
2nd-level cache: 2-MB, 8-way set associative, 64-byte line size
1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
L2 cache: 512 kbytes, 16-way associative, 64 bytes/line
real memory  = 3221225472 (3072 MB)
Physical memory chunk(s):
0x0000000000001000 - 0x000000000009bfff, 634880 bytes (155 pages)
0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages)
0x00000000021f4000 - 0x00000000bb15dfff, 3103170560 bytes (757610 pages)
avail memory = 3077693440 (2935 MB)
Event timer "LAPIC" quality 400
LAPIC: ipi_wait() us multiplier 3 (r 81535245 tsc 2593693122)
ACPI APIC Table: <BOCHS  BXPCAPIC>
Package ID shift: 0
L2 cache ID shift: 0
L1 cache ID shift: 0
INTR: Adding local APIC 1 as a target
INTR: Adding local APIC 2 as a target
FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs
FreeBSD/SMP: 3 package(s)
Package HW ID = 0 (0)
                CPU0 (BSP): APIC ID: 0 (0)
Package HW ID = 1 (0x1)
                CPU1 (AP): APIC ID: 1 (0x1)
Package HW ID = 2 (0x2)
                CPU2 (AP): APIC ID: 2 (0x2)
APIC: CPU 0 has ACPI ID 0
APIC: CPU 1 has ACPI ID 1
APIC: CPU 2 has ACPI ID 2
x86bios:  IVT 0x000000-0x0004ff at 0xfffff80000000000
x86bios: SSEG 0x001000-0x001fff at 0xfffffe00b9535000
x86bios: EBDA 0x09f000-0x09ffff at 0xfffff8000009f000
x86bios:  ROM 0x0a0000-0x0fefff at 0xfffff800000a0000
random: read 4096 bytes from preloaded cache
random: unblocking device.
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
ACPI: RSDP 0x00000000000F1DE0 000014 (v00 BOCHS )
ACPI: RSDT 0x00000000BFFFFB6D 000030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 0x00000000BFFFF177 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 0x00000000BFFFE040 001137 (v01 BXPC   BXDSDT   00000001 INTL 20140926)
ACPI: FACS 0x00000000BFFFE000 000040
ACPI: SSDT 0x00000000BFFFF1EB 0008FA (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 0x00000000BFFFFAE5 000088 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
MADT: Found IO APIC ID 0, Interrupt 0 at 0xfec00000
ioapic0: ver 0x11 maxredir 0x17
ioapic0: Routing external 8259A's -> intpin 0
MADT: Interrupt override: source 0, irq 2
ioapic0: Routing IRQ 0 -> intpin 2
MADT: Interrupt override: source 5, irq 5
ioapic0: intpin 5 trigger: level
MADT: Interrupt override: source 9, irq 9
ioapic0: intpin 9 trigger: level
MADT: Interrupt override: source 10, irq 10
ioapic0: intpin 10 trigger: level
MADT: Interrupt override: source 11, irq 11
ioapic0: intpin 11 trigger: level
lapic: Routing NMI -> LINT1
lapic: LINT1 trigger: edge
lapic: LINT1 polarity: high
ioapic0 <Version 1.1> irqs 0-23 on motherboard
cpu0 BSP:
     ID: 0x00000000   VER: 0x00050014 LDR: 0x00000000 DFR: 0xffffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
wlan: <802.11 Link Layer>
snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25
random: entropy device external interface
kbd: new array size 4
kbd1 at kbdmux0
mem: <memory>
nfslock: pseudo-device
crypto: <crypto core>
netmap: loaded module
null: <full device, null device, zero device>
module_register_init: MOD_LOAD (vesa, 0xffffffff8101c950, 0) error 19
io: <I/O>
hptrr: RocketRAID 17xx/2xxx SATA controller driver v1.2
hpt27xx: RocketRAID 27xx controller driver v1.2.7
hptnr: R750/DC7280 controller driver v1.1.4
vtvga0: <VT VGA driver> on motherboard
random: harvesting attach, 8 bytes (4 bits) from vtvga0
random: harvesting attach, 8 bytes (4 bits) from ram0
cryptosoft0: <software crypto> on motherboard
crypto: assign cryptosoft0 driver id 0, flags 100663296
crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
random: harvesting attach, 8 bytes (4 bits) from cryptosoft0
acpi0: <BOCHS BXPCRSDT> on motherboard
ACPI: 2 ACPI AML tables successfully acquired and loaded

ioapic0: routing intpin 9 (ISA IRQ 9) to lapic 0 vector 48
acpi0: Power Button (fixed)
cpu0: Processor \134_SB_.CP00 (ACPI ID 0) -> APIC ID 0
cpu0: <ACPI CPU> on acpi0
cpu0: switching to generic Cx mode
random: harvesting attach, 8 bytes (4 bits) from cpu0
cpu1: Processor \134_SB_.CP01 (ACPI ID 1) -> APIC ID 1
cpu1: <ACPI CPU> on acpi0
random: harvesting attach, 8 bytes (4 bits) from cpu1
cpu2: Processor \134_SB_.CP02 (ACPI ID 2) -> APIC ID 2
cpu2: <ACPI CPU> on acpi0
random: harvesting attach, 8 bytes (4 bits) from cpu2
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
atrtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s)
ioapic0: routing intpin 8 (ISA IRQ 8) to lapic 0 vector 49
Event timer "RTC" frequency 32768 Hz quality 0
random: harvesting attach, 8 bytes (4 bits) from atrtc0
ACPI timer: 1/38 1/56 1/47 1/192 1/41 1/42 1/98 1/45 1/195 1/48 -> 10
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x608-0x60b on acpi0
random: harvesting attach, 8 bytes (4 bits) from acpi_timer0
pci_link0:        Index  IRQ  Rtd  Ref  IRQs
  Initial Probe       0   10   N     0  5 10 11
  Validation          0   10   N     0  5 10 11
  After Disable       0  255   N     0  5 10 11
random: harvesting attach, 8 bytes (4 bits) from pci_link0
pci_link1:        Index  IRQ  Rtd  Ref  IRQs
  Initial Probe       0   10   N     0  5 10 11
  Validation          0   10   N     0  5 10 11
  After Disable       0  255   N     0  5 10 11
random: harvesting attach, 8 bytes (4 bits) from pci_link1
pci_link2:        Index  IRQ  Rtd  Ref  IRQs
  Initial Probe       0   11   N     0  5 10 11
  Validation          0   11   N     0  5 10 11
  After Disable       0  255   N     0  5 10 11
random: harvesting attach, 8 bytes (4 bits) from pci_link2
pci_link3:        Index  IRQ  Rtd  Ref  IRQs
  Initial Probe       0   11   N     0  5 10 11
  Validation          0   11   N     0  5 10 11
  After Disable       0  255   N     0  5 10 11
random: harvesting attach, 8 bytes (4 bits) from pci_link3
pci_link4:        Index  IRQ  Rtd  Ref  IRQs
  Initial Probe       0    9   N     0  9
  Validation          0    9   N     0  9
  After Disable       0  255   N     0  9
random: harvesting attach, 8 bytes (4 bits) from pci_link4
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: decoding 5 range 0-0xff
pcib0: decoding 4 range 0-0xcf7
pcib0: decoding 4 range 0xd00-0xffff
pcib0: decoding 3 range 0xa0000-0xbffff
pcib0: decoding 3 range 0xc0000000-0xfebfffff
ACPI: Found matching pin for 0.1.INTA at func 3: 9
ACPI: Found matching pin for 0.1.INTD at func 2: 11
ACPI: Found matching pin for 0.3.INTA at func 0: 11
ACPI: Found matching pin for 0.4.INTA at func 0: 11
ACPI: Found matching pin for 0.7.INTA at func 0: 11
pci0: <ACPI PCI bus> on pcib0
pci0: domain=0, physical bus=0
found-> vendor=0x8086, dev=0x1237, revid=0x02
        domain=0, bus=0, slot=0, func=0
        class=06-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0103, statreg=0x0000, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found-> vendor=0x8086, dev=0x7000, revid=0x00
        domain=0, bus=0, slot=1, func=0
        class=06-01-00, hdrtype=0x00, mfdev=1
        cmdreg=0x0103, statreg=0x0200, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found-> vendor=0x8086, dev=0x7010, revid=0x00
        domain=0, bus=0, slot=1, func=1
        class=01-01-80, hdrtype=0x00, mfdev=0
        cmdreg=0x0103, statreg=0x0280, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
pcib0: allocated type 4 (0x1f0-0x1f7) for rid 10 of pci0:0:1:1
pcib0: allocated type 4 (0x3f6-0x3f6) for rid 14 of pci0:0:1:1
pcib0: allocated type 4 (0x170-0x177) for rid 18 of pci0:0:1:1
pcib0: allocated type 4 (0x376-0x376) for rid 1c of pci0:0:1:1
        map[20]: type I/O Port, range 32, base 0xc0a0, size  4, enabled
pcib0: allocated type 4 (0xc0a0-0xc0af) for rid 20 of pci0:0:1:1
found-> vendor=0x8086, dev=0x7020, revid=0x01
        domain=0, bus=0, slot=1, func=2
        class=0c-03-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0107, statreg=0x0000, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=d, irq=11
        map[20]: type I/O Port, range 32, base 0xc040, size  5, enabled
pcib0: allocated type 4 (0xc040-0xc05f) for rid 20 of pci0:0:1:2
pcib0: matched entry for 0.1.INTD (src \134_SB_.LNKD:0)
pcib0: slot 1 INTD routed to irq 11 via \134_SB_.LNKD
found-> vendor=0x8086, dev=0x7113, revid=0x03
        domain=0, bus=0, slot=1, func=3
        class=06-80-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0103, statreg=0x0280, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=9
pcib0: matched entry for 0.1.INTA (src \134_SB_.LNKS:0)
pcib0: slot 1 INTA routed to irq 9 via \134_SB_.LNKS
found-> vendor=0x1013, dev=0x00b8, revid=0x00
        domain=0, bus=0, slot=2, func=0
        class=03-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0103, statreg=0x0000, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        map[10]: type Prefetchable Memory, range 32, base 0xfc000000, size 25, enabled
pcib0: allocated type 3 (0xfc000000-0xfdffffff) for rid 10 of pci0:0:2:0
        map[14]: type Memory, range 32, base 0xfebd0000, size 12, enabled
pcib0: allocated type 3 (0xfebd0000-0xfebd0fff) for rid 14 of pci0:0:2:0
found-> vendor=0x1af4, dev=0x1000, revid=0x00
        domain=0, bus=0, slot=3, func=0
        class=02-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0103, statreg=0x0010, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=11
        MSI-X supports 3 messages in map 0x14
        map[10]: type I/O Port, range 32, base 0xc060, size  5, enabled
pcib0: allocated type 4 (0xc060-0xc07f) for rid 10 of pci0:0:3:0
        map[14]: type Memory, range 32, base 0xfebd1000, size 12, enabled
pcib0: allocated type 3 (0xfebd1000-0xfebd1fff) for rid 14 of pci0:0:3:0
pcib0: matched entry for 0.3.INTA (src \134_SB_.LNKC:0)
pcib0: slot 3 INTA routed to irq 11 via \134_SB_.LNKC
found-> vendor=0x1af4, dev=0x1002, revid=0x00
        domain=0, bus=0, slot=4, func=0
        class=00-ff-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0103, statreg=0x0000, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=11
        map[10]: type I/O Port, range 32, base 0xc080, size  5, enabled
pcib0: allocated type 4 (0xc080-0xc09f) for rid 10 of pci0:0:4:0
pcib0: matched entry for 0.4.INTA (src \134_SB_.LNKD:0)
pcib0: slot 4 INTA routed to irq 11 via \134_SB_.LNKD
found-> vendor=0x1af4, dev=0x1004, revid=0x00
        domain=0, bus=0, slot=7, func=0
        class=01-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0107, statreg=0x0010, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=11
        MSI-X supports 4 messages in map 0x14
        map[10]: type I/O Port, range 32, base 0xc000, size  6, enabled
pcib0: allocated type 4 (0xc000-0xc03f) for rid 10 of pci0:0:7:0
        map[14]: type Memory, range 32, base 0xfebd2000, size 12, enabled
pcib0: allocated type 3 (0xfebd2000-0xfebd2fff) for rid 14 of pci0:0:7:0
pcib0: matched entry for 0.7.INTA (src \134_SB_.LNKC:0)
pcib0: slot 7 INTA routed to irq 11 via \134_SB_.LNKC
random: harvesting attach, 8 bytes (4 bits) from hostb0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
random: harvesting attach, 8 bytes (4 bits) from isa0
random: harvesting attach, 8 bytes (4 bits) from isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc0a0-0xc0af at device 1.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ioapic0: routing intpin 14 (ISA IRQ 14) to lapic 0 vector 50
random: harvesting attach, 8 bytes (4 bits) from ata0
ata1: <ATA channel> at channel 1 on atapci0
ioapic0: routing intpin 15 (ISA IRQ 15) to lapic 0 vector 51
random: harvesting attach, 8 bytes (4 bits) from ata1
random: harvesting attach, 8 bytes (4 bits) from atapci0
uhci0: <Intel 82371SB (PIIX3) USB controller> port 0xc040-0xc05f irq 11 at device 1.2 on pci0
ioapic0: routing intpin 11 (ISA IRQ 11) to lapic 0 vector 52
usbus0: controller did not stop
usbus0 on uhci0
uhci0: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus0
random: harvesting attach, 8 bytes (4 bits) from uhci0
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem 0xfc000000-0xfdffffff,0xfebd0000-0xfebd0fff at device 2.0 on pci0
vgapci0: Boot video device
random: harvesting attach, 8 bytes (4 bits) from vgapci0
virtio_pci0: <VirtIO PCI Network adapter> port 0xc060-0xc07f mem 0xfebd1000-0xfebd1fff irq 11 at device 3.0 on pci0
vtnet0: <VirtIO Networking Adapter> on virtio_pci0
virtio_pci0: host features: 0x799fffe3 <EventIdx,RingIndirect,0x8000000,NotifyOnEmpty,SetMacAddress,RxModeExtra,VLanFilter,RxMode,ControlVq,Status,MrgRxBuf,TxUFO,TxTSOECN,TxTSOv6,TxTSOv4,RxUFO,RxECN,RxTSOv6,RxTSOv4,TxAllGSO,MacAddress,RxChecksum,TxChecksum>
virtio_pci0: negotiated features: 0x308fbbe3 <EventIdx,RingIndirect,SetMacAddress,VLanFilter,RxMode,ControlVq,Status,MrgRxBuf,TxTSOECN,TxTSOv6,TxTSOv4,RxECN,RxTSOv6,RxTSOv4,TxAllGSO,MacAddress,RxChecksum,TxChecksum>
vtnet0: bpf attached
vtnet0: Ethernet address: 52:54:00:5c:8c:fa
virtio_pci0: attempting to allocate 3 MSI-X vectors (3 supported)
msi: routing MSI-X IRQ 256 to local APIC 0 vector 53
msi: routing MSI-X IRQ 257 to local APIC 0 vector 54
msi: routing MSI-X IRQ 258 to local APIC 0 vector 55
virtio_pci0: using IRQs 256-258 for MSI-X
virtio_pci0: using per VQ MSIX interrupts
001.000049 [ 421] vtnet_netmap_attach       max rings 1
vtnet0: netmap queues/slots: TX 1/1024, RX 1/1024
001.000050 [ 426] vtnet_netmap_attach       virtio attached txq=1, txd=1024 rxq=1, rxd=1024
random: harvesting attach, 8 bytes (4 bits) from vtnet0
random: harvesting attach, 8 bytes (4 bits) from virtio_pci0
virtio_pci1: <VirtIO PCI Balloon adapter> port 0xc080-0xc09f irq 11 at device 4.0 on pci0
vtballoon0: <VirtIO Balloon Adapter> on virtio_pci1
virtio_pci1: host features: 0x71000002 <EventIdx,RingIndirect,NotifyOnEmpty,StatsVq>
virtio_pci1: negotiated features: 0
virtio_pci1: using legacy interrupt
random: harvesting attach, 8 bytes (4 bits) from vtballoon0
random: harvesting attach, 8 bytes (4 bits) from virtio_pci1
virtio_pci2: <VirtIO PCI SCSI adapter> port 0xc000-0xc03f mem 0xfebd2000-0xfebd2fff irq 11 at device 7.0 on pci0
vtscsi0: <VirtIO SCSI Adapter> on virtio_pci2
virtio_pci2: host features: 0x71000006 <EventIdx,RingIndirect,NotifyOnEmpty,0x4,Hotplug>
virtio_pci2: negotiated features: 0x10000002 <RingIndirect,Hotplug>
virtio_pci2: attempting to allocate 4 MSI-X vectors (4 supported)
msi: routing MSI-X IRQ 259 to local APIC 0 vector 56
msi: routing MSI-X IRQ 260 to local APIC 0 vector 57
msi: routing MSI-X IRQ 261 to local APIC 0 vector 58
msi: routing MSI-X IRQ 262 to local APIC 0 vector 59
virtio_pci2: using IRQs 259-262 for MSI-X
virtio_pci2: using per VQ MSIX interrupts
random: harvesting attach, 8 bytes (4 bits) from vtscsi0
random: harvesting attach, 8 bytes (4 bits) from virtio_pci2
random: harvesting attach, 8 bytes (4 bits) from pci0
random: harvesting attach, 8 bytes (4 bits) from pcib0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0061
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x1d0000
ioapic0: routing intpin 1 (ISA IRQ 1) to lapic 0 vector 60
atkbd0: [GIANT-LOCKED]
random: harvesting attach, 8 bytes (4 bits) from atkbd0
psm0: unable to allocate IRQ
random: harvesting attach, 8 bytes (4 bits) from atkbdc0
psmcpnp0: <PS/2 mouse port> irq 12 on acpi0
psm0: current command byte:0061
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
psm: status 00 02 64
psm: status 00 00 64
psm: status 00 03 64
psm: status 00 03 64
psm: data 08 00 00
psm: status 00 02 64
psm0: <PS/2 Mouse> irq 12 on atkbdc0
ioapic0: routing intpin 12 (ISA IRQ 12) to lapic 0 vector 61
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4-00, 5 buttons
psm0: config:00000000, flags:00000008, packet size:4
psm0: syncmask:08, syncbits:00
random: harvesting attach, 8 bytes (4 bits) from psm0
random: harvesting attach, 8 bytes (4 bits) from psmcpnp0
fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 0 vector 62
uart0: fast interrupt
uart0: PPS capture mode: DCDinvalid
random: harvesting attach, 8 bytes (4 bits) from uart0
ACPI: Enabled 16 GPEs in block 00 to 0F
random: harvesting attach, 8 bytes (4 bits) from acpi0
random: harvesting attach, 8 bytes (4 bits) from apic0
acpi0: wakeup code va 0xfffffe00d7ccf000 pa 0x4000
random: harvesting attach, 8 bytes (4 bits) from nexus0
ahc_isa_identify 0: ioport 0xc00 alloc failed
ahc_isa_identify 1: ioport 0x1c00 alloc failed
ahc_isa_identify 2: ioport 0x2c00 alloc failed
ahc_isa_identify 3: ioport 0x3c00 alloc failed
ahc_isa_identify 4: ioport 0x4c00 alloc failed
ahc_isa_identify 5: ioport 0x5c00 alloc failed
ahc_isa_identify 6: ioport 0x6c00 alloc failed
ahc_isa_identify 7: ioport 0x7c00 alloc failed
ahc_isa_identify 8: ioport 0x8c00 alloc failed
ahc_isa_identify 9: ioport 0x9c00 alloc failed
ahc_isa_identify 10: ioport 0xac00 alloc failed
ahc_isa_identify 11: ioport 0xbc00 alloc failed
ahc_isa_identify 12: ioport 0xcc00 alloc failed
ahc_isa_identify 13: ioport 0xdc00 alloc failed
ahc_isa_identify 14: ioport 0xec00 alloc failed
pcib0: allocated type 3 (0xb0000-0xb07ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb0800-0xb0fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb1000-0xb17ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb1800-0xb1fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb2000-0xb27ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb2800-0xb2fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb3000-0xb37ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb3800-0xb3fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb4000-0xb47ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb4800-0xb4fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb5000-0xb57ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb5800-0xb5fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb6000-0xb67ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb6800-0xb6fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb7000-0xb77ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb7800-0xb7fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb8000-0xb87ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb8800-0xb8fff) for rid 0 of orm0
pcib0: allocated type 3 (0xb9000-0xb97ff) for rid 0 of orm0
pcib0: allocated type 3 (0xb9800-0xb9fff) for rid 0 of orm0
pcib0: allocated type 3 (0xba000-0xba7ff) for rid 0 of orm0
pcib0: allocated type 3 (0xba800-0xbafff) for rid 0 of orm0
pcib0: allocated type 3 (0xbb000-0xbb7ff) for rid 0 of orm0
pcib0: allocated type 3 (0xbb800-0xbbfff) for rid 0 of orm0
pcib0: allocated type 3 (0xbc000-0xbc7ff) for rid 0 of orm0
pcib0: allocated type 3 (0xbc800-0xbcfff) for rid 0 of orm0
pcib0: allocated type 3 (0xbd000-0xbd7ff) for rid 0 of orm0
pcib0: allocated type 3 (0xbd800-0xbdfff) for rid 0 of orm0
pcib0: allocated type 3 (0xbe000-0xbe7ff) for rid 0 of orm0
pcib0: allocated type 3 (0xbe800-0xbefff) for rid 0 of orm0
pcib0: allocated type 3 (0xbf000-0xbf7ff) for rid 0 of orm0
pcib0: allocated type 3 (0xbf800-0xbffff) for rid 0 of orm0
isa_probe_children: disabling PnP devices
atkbdc: atkbdc0 already exists; skipping it
atrtc: atrtc0 already exists; skipping it
sc: sc0 already exists; skipping it
uart: uart0 already exists; skipping it
isa_probe_children: probing non-PnP devices
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc8fff,0xed800-0xeffff on isa0
random: harvesting attach, 8 bytes (4 bits) from orm0
sc0 failed to probe on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
pcib0: allocated type 4 (0x3c0-0x3df) for rid 0 of vga0
VESA: INT 0x10 vector 0xc000:0x4c31
VESA: information block
0000   56 45 53 41 00 03 a2 4e 00 c0 00 00 00 00 22 00
0010   00 02 40 00 00 00 b6 4e 00 c0 c9 4e 00 c0 dd 4e
0020   00 c0 01 01 11 01 10 01 12 01 03 01 14 01 13 01
0030   05 01 17 01 16 01 15 01 18 01 07 01 19 01 1a 01
0040   00 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00
0050   0d 00 0e 00 0f 00 10 00 11 00 12 00 13 00 6a 00
0060   ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0070   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0080   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0090   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00a0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00b0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00c0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00d0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00e0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00f0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0100   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0110   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0120   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0130   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0140   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0150   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0160   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0170   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0180   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0190   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01a0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01b0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01c0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01d0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01e0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01f0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
VESA: 31 mode(s) found
random: harvesting attach, 8 bytes (4 bits) from vga0
attimer0: <AT timer> at port 0x40 on isa0
pcib0: allocated type 4 (0x40-0x43) for rid 0 of attimer0
Timecounter "i8254" frequency 1193182 Hz quality 0
ioapic0: routing intpin 2 (ISA IRQ 0) to lapic 0 vector 63
Event timer "i8254" frequency 1193182 Hz quality 100
random: harvesting attach, 8 bytes (4 bits) from attimer0
fdc0: No FDOUT register!
fdc0 failed to probe at port 0x3f0 irq 6 drq 2 on isa0
ppc0: cannot reserve I/O port range
ppc0 failed to probe at irq 7 on isa0
pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1
uart1 failed to probe at port 0x2f8 irq 3 on isa0
isa_probe_children: probing PnP devices
Device configuration finished.
usbus0: 12Mbps Full Speed USB v1.0
procfs registered
lapic: Divisor 2, Frequency 500013321 Hz
Timecounters tick every 1.000 msec
vlan: initialized, using hash tables with chaining
lo0: bpf attached
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 32768
IPsec: Initialized Security Association Processing.
hptrr: no controller detected.
hpt27xx: no controller detected.
hptnr: no controller detected.
nvme cam probe device init
ata0: reset tp1 mask=03 ostat0=00 ostat1=00
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ata0: stat0=0x00 err=0x00 lsb=0x00 msb=0x00
ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00
ata0: reset tp2 stat0=00 stat1=00 devices=0x0
ata1: reset tp1 mask=03 ostat0=00 ostat1=00
ata1: stat0=0x00 err=0x00 lsb=0x00 msb=0x00
ata1: stat1=0x00 err=0x00 lsb=0x00 msb=0x00
ata1: reset tp2 stat0=00 stat1=00 devices=0x0
(da0:vtscsi0:0:0:0): UNMAPPED
pass0 at vtscsi0 bus 0 scbus2 target 0 lun 0
pass0: <QEMU QEMU HARDDISK 1.5.> Fixed Direct Access SPC-3 SCSI device
pass0: 300.000MB/s transfers
pass0: Command Queueing enabled
da0 at vtscsi0 bus 0 scbus2 target 0 lun 0
da0: <QEMU QEMU HARDDISK 1.5.> Fixed Direct Access SPC-3 SCSI device
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 61440MB (125829120 512 byte sectors)
SMP: AP CPU #2 Launched!
cpu2 AP:
     ID: 0x02000000   VER: 0x00050014 LDR: 0x00000000 DFR: 0xffffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
SMP: AP CPU #1 Launched!
cpu1 AP:
     ID: 0x01000000   VER: 0x00050014 LDR: 0x00000000 DFR: 0xffffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
ioapic0: routing intpin 1 (ISA IRQ 1) to lapic 1 vector 48
ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 2 vector 48
ioapic0: routing intpin 11 (ISA IRQ 11) to lapic 1 vector 49
ioapic0: routing intpin 12 (ISA IRQ 12) to lapic 2 vector 49
ioapic0: routing intpin 15 (ISA IRQ 15) to lapic 1 vector 50
msi: Assigning MSI-X IRQ 256 to local APIC 2 vector 50
msi: Assigning MSI-X IRQ 258 to local APIC 1 vector 51
msi: Assigning MSI-X IRQ 259 to local APIC 2 vector 51
msi: Assigning MSI-X IRQ 261 to local APIC 1 vector 52
msi: Assigning MSI-X IRQ 262 to local APIC 2 vector 52
da0: Delete methods: <UNMAP(*),WS16,WS10,ZERO>
GEOM: new disk da0
TSC timecounter discards lower 1 bit(s)
Timecounter "TSC-low" frequency 1296846561 Hz quality -100
Trying to mount root from ufs:/dev/da0p2 [rw]...
start_init: trying /sbin/init
uhub0: 2 ports with 2 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub0
ugen0.2: <QEMU> at usbus0
vtnet0: link state changed to UP
uhid0: <QEMU QEMU USB Tablet, class 0/0, rev 2.00/0.00, addr 2> on usbus0
random: harvesting attach, 8 bytes (4 bits) from uhid0
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to accept, logging disabled
Linux ELF exec handler installed
Linux x86-64 ELF exec handler installed


Бенч диска выдаёт очень даже неплохие результаты, особенно по сравнению с HDD, там в разы медленнее))
Код: выделить все
# diskinfo -tv /dev/da0
/dev/da0
        512             # sectorsize
        64424509440     # mediasize in bytes (60G)
        125829120       # mediasize in sectors
        0               # stripesize
        0               # stripeoffset
        7832            # Cylinders according to firmware.
        255             # Heads according to firmware.
        63              # Sectors according to firmware.
                        # Disk ident.
        Not_Zoned       # Zone Mode

Seek times:
        Full stroke:      250 iter in   0.021674 sec =    0.087 msec
        Half stroke:      250 iter in   0.027001 sec =    0.108 msec
        Quarter stroke:   500 iter in   0.039555 sec =    0.079 msec
        Short forward:    400 iter in   0.028070 sec =    0.070 msec
        Short backward:   400 iter in   0.043602 sec =    0.109 msec
        Seq outer:       2048 iter in   0.287483 sec =    0.140 msec
        Seq inner:       2048 iter in   0.154922 sec =    0.076 msec
Transfer rates:
        outside:       102400 kbytes in   0.231715 sec =   441922 kbytes/sec
        middle:        102400 kbytes in   0.095778 sec =  1525285 kbytes/sec
        inside:        102400 kbytes in   0.083987 sec =  1392572 kbytes/sec
Mikanoshi
 
Сообщений: 205
Зарегистрирован: Сб май 02, 2009 2:03 pm

Re: FreeBSD VirtIO Disk

Сообщение ls » Вс авг 28, 2016 11:24 am

Мы пока еще не экспериментировали с FreeBSD 11
virtio во FreeBSD, как правило, подключается модулем в /boot/loader.conf (пример http://www.area536.com/projects/freebsd ... ng-virtio/)
Но если бы его поддержки не было в ядре, то скорее всего бы диск просто не увиделся
* FirstVDS в twitter в facebook и в вконтакте *
ls
Support team
 
Сообщений: 6373
Зарегистрирован: Чт мар 01, 2007 10:36 am
Откуда: FirstVDS

Re: FreeBSD VirtIO Disk

Сообщение Mikanoshi » Пн авг 29, 2016 4:56 pm

Не знаю с какой версии, но на 11 оно точно в ядре уже.
Код: выделить все
# kldstat -v | grep virt
310 virtio_pci/virtio_scsi
309 virtio_pci/virtio_balloon
308 virtio_pci/virtio_blk
307 virtio_mmio/virtio_blk
306 virtio_pci/vtnet
305 virtio_mmio/vtnet
304 pci/virtio_pci
303 virtio
Mikanoshi
 
Сообщений: 205
Зарегистрирован: Сб май 02, 2009 2:03 pm


Вернуться в Вопросы о работе сервера

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 4

cron