It isn't in amd64 GENERIC, and is disabled in i386 GENERIC. Guess noone tried it in a while, and noone cared to push for it to be enabled.
> I added watchdog device for OpenBSD VM on qemu-kvm and it seems it's not > detected > correctly: > > OpenBSD 6.0-current (GENERIC.MP) #167: Sat Feb 11 19:35:52 MST 2017 > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 518905856 (494MB) > avail mem = 498569216 (475MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7220 (11 entries) > bios0: vendor Seabios version "0.5.1" date 01/01/2011 > bios0: Red Hat KVM > acpi0 at bios0: rev 0 > acpi0: sleep states S5 > acpi0: tables DSDT FACP APIC > acpi0: wakeup devices > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel Core i7 9xx (Nehalem Class Core i7), 1866.90 MHz > ... > virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00 > vio0 at virtio0: address 52:54:00:b8:93:d9 > virtio0: msix shared > "Intel 6300ESB WDT" rev 0x00 at pci0 dev 4 function 0 not configured > ... > > # sysctl -a | grep watch > # > > Shouldn't this be detected as ichwdt(4)? > > ichwdt(4) - Intel 6300ESB ICH watchdog timer device > > # pcidump -v 0:4:0 > 0:4:0: Intel 6300ESB WDT > 0x0000: Vendor ID: 8086 Product ID: 25ab > 0x0004: Command: 0103 Status: 0000 > 0x0008: Class: 08 Subclass: 80 Interface: 00 Revision: 00 > 0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: > 00 > 0x0010: BAR mem 32bit addr: 0xfebc1000/0x00000010 > 0x0014: BAR empty (00000000) > 0x0018: BAR empty (00000000) > 0x001c: BAR empty (00000000) > 0x0020: BAR empty (00000000) > 0x0024: BAR empty (00000000) > 0x0028: Cardbus CIS: 00000000 > 0x002c: Subsystem Vendor ID: 1af4 Product ID: 1100 > 0x0030: Expansion ROM Base Address: 00000000 > 0x0038: 00000000 > 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00 > > Libvirt xml part is: > > <watchdog model='i6300esb' action='reset'> > <alias name='watchdog0'/> > <address type='pci' domain='0x0000' bus='0x00' slot='0x04' > function='0x0'/> > </watchdog> > > Qemu cmd line is: > > qemu 11657 81.6 5.3 1075552 434084 ? Sl 23:23 17:53 > /usr/libexec/qemu-kvm -name guest=www1,debug-threads=on -S -object > secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-6-www1/mast > er-key.aes -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off -cpu Nehalem -m 512 > -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid > e26e7c0c-ea90-45bd-981d-23d471f58162 -nographic -no-user-config -nodefaults > -device sga -chardev > socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-6-www1/monitor.sock,s > erver,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc > base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet > -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot > menu=on,reboot-timeout=0,splash-time=3000,strict=on -device > ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x5.0x7 -device > ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x5 > -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x5.0x1 > -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x5.0x2 > -drive > file=/dev/data1vg/www1,format=raw,if=none,id=drive-virtio-disk0,cache=none,ai > o=native -device > virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio > -disk0,bootindex=2 -netdev tap,fd=28,id=hostnet0,vhost=on,vhostfd=30 -device > virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:b8:93:d9,bus=pci.0,addr=0 > x3,bootindex=1 -chardev pty,id=charserial0 -device > isa-serial,chardev=charserial0,id=serial0 -device > i6300esb,id=watchdog0,bus=pci.0,addr=0x4 -watchdog-action reset -device > virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -object > rng-random,id=objrng0,filename=/dev/random -device > virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x8 -msg timestamp=on > > Am I doing something wrong or it is a bug? > > j.

