To build:

  ./configure
  make

To install:

  sudo make install

Read the manual page for the rest:

  man man/virt-dmesg.1
