--- nono/vm/virtio_entropy.cpp 2026/04/29 17:05:42 1.1.1.3 +++ nono/vm/virtio_entropy.cpp 2026/04/29 17:05:59 1.1.1.4 @@ -16,20 +16,21 @@ VirtIOEntropyDevice::VirtIOEntropyDevice(uint slot_) : inherited(OBJ_VIRTIO_ENTROPY, slot_) { - // 短縮形 - AddAlias("vent"); + // 割り込み名(とログ名) + strlcpy(intrname, "VIOEnt", sizeof(intrname)); + SetName(intrname); + ClearAlias(); + AddAlias(intrname); device_id = VirtIO::DEVICE_ID_ENTROPY; int num_max = 4; vqueues.emplace_back(this, 0, "RequestQ", num_max); - // 割り込み名 - strlcpy(intrname, "VIOEnt", sizeof(intrname)); // 完了通知メッセージ msgid = MessageID::VIRTIO_ENTROPY_DONE; monitor = gMonitorManager->Regist(ID_MONITOR_VIRTIO_ENTROPY, this); - monitor->func = ToMonitorCallback(&VirtIOEntropyDevice::MonitorUpdate); + monitor->SetCallback(&VirtIOEntropyDevice::MonitorScreen); monitor->SetSize(MONITOR_WIDTH, 2 + 4 * 1 + num_max + 3); } @@ -39,17 +40,17 @@ VirtIOEntropyDevice::~VirtIOEntropyDevic } void -VirtIOEntropyDevice::MonitorUpdate(Monitor *, TextScreen& screen) +VirtIOEntropyDevice::MonitorScreen(Monitor *, TextScreen& screen) { int y = 0; screen.Clear(); - y = MonitorUpdateDev(screen, y); + y = MonitorScreenDev(screen, y); y++; - y = MonitorUpdateVirtQueue(screen, y, vqueues[0]); + y = MonitorScreenVirtQueue(screen, y, vqueues[0]); y++; - y = MonitorUpdateVirtQDesc(screen, y, vqueues[0]); + y = MonitorScreenVirtQDesc(screen, y, vqueues[0]); } // ディスクリプタを一つ処理する。