From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ganis Zulfa Santoso Subject: Re: I can read/write in virtio BLK Device, but I can't run a hello world program in it Date: Tue, 7 Jul 2015 16:33:33 +0900 Message-ID: References: <20150707085504.11d15a8b@thh440s> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150707085504.11d15a8b@thh440s> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Thomas Huth Cc: virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org > Thomas Huth wrote: > > Why don't you simply use the driver that is already available in the > kernel? I am using a custom hypervisor, the available driver is not suitable for it. > > Have you already verified that you can successfully read the _right_ > data from your block device? I.e. something like > > mount /dev/xxx /mnt > cp helloworld_static /mnt/root/helloworld_static > umount /mnt # just to make sure that it is not cached > mount /dev/xxx /mnt > md5sum helloworld_static > md5sum /mnt/root/helloworld_static > > ... and then compare the two md5sums whether they are the same? They are different. Thank you so much. I am truly thankful. > > Thomas