Abhijeet Dev

 

While working on virtualisation of custom services, I came across ivshmem module in kvm that I am now using to have interrupts and shared memory between host and multiple guests. Setting it up is easy, but available documentation is outdated.

Configuration
Host: Ubuntu 11.10, installed qemu-kvm
Guest: Gentoo, for minimal configuration and maximum customisability

Making it work

  1. Download and compile ivshmem support code from nahanni’s gitorious repo  on host and guest(s):
    git clone https://git.gitorious.org/nahanni/guest-code.git
  2. [Host] Go to ivshmem_server folder in downloaded code, build and run the following:
    ./ivshmem_server -m 512 -s nahanni -p /tmp/nahanni
  3. [Host] Run guest vm(s) using the following command line (or any other arguments):
    kvm -boot d -hda vhost-gentoo.raw -cpu core2duo -m 1G -chardev socket,path=/tmp/nahanni,id=nahanni -device ivshmem,chardev=nahanni,size=512m,ioeventfd=on,vectors=8
  4. [Guest] Go to kernel_module/standard folder in downloaded code, build and run
    insmod kvm_ivshmem.ko
  5. Check the kernel messages, make sure you see ‘MSI-X enabled’. If there is any error, fix the error first.
    dmesg | tail
  6. Check major number allocated to the char device created:
    cat /proc/devices | grep kvm_ivshmem
  7. Use the major number above – it’s ’250′ for my sequence of actions on my configured VM.
    mknod --mode=666 /dev/ivshmem c 250 0
  8. If you have multiple ivshmem devices serving different purposes
    # for each ivshmem device
    mknod --mode=666 /dev/ivshmem<n> c <n>
  9. It works now! Try the test code in tests folder in downloaded support code.

 

And it is a .NET web application in debug mode!

Blackberry store crash

 

Why would anyone see this as protectionist: http://economictimes.indiatimes.com/tech/ites/us-bill-on-outsourcing-cause-of-concern-india/articleshow/11205753.cms

Federal government of US shouldn’t have to help companies that outsource! The bill is about denying eligibility for grants and guaranteed loans from “federal government”, this doesn’t look bad for free trade. And we at India just can’t talk about free trade, Indian trade laws are full of protectionism. I think protectionism is needed in the current political scenario – US government need to worry about unemployment as much as we need to worry about future of our home-grown industry and the extent of unemployment in the absence of it.
(Free trade is an excellent concept – meritocratic, but we are not ready for it!)

 

This patch is on opencv svn revision 7044 as an interim hack for those who would like to switch to cuda release 4.1 but depend heavily on opencv.

opencv hacky patch to work with cuda 4.1

 

US army kills Al-Quaeda mastermind deep inside Pakistani territories – Abbottabad, a city with many military establishments. A fortified compound so close to Pakistany army compound can not go unnoticed. How could the citizens and Army executives keep their mouth shut about leader of an enemy insurgent group?
It has been said you should put yourself in others shoes before judging them. I and many others who lived a life of city dweller probably can’t understand how someone could support anyone who kills innocents. There are plenty of citizens of Pakistan who abhor the terrorists, but they are busy enough doing constructive work that they certainly can’t do much about the terrorists.
We Indians have a lot to say about Pakistan sponsored terrorism, let’s do a bit of introspection here. LTTE was an insurgent group that was supported by most Indians for years and by many Tamils even today. Palestinian movement is more wrong than right, India supported it right since its inception, until BJP government pulled the plug. India seems to support some kind of small insurgent groups in Pakistan and Bangladesh. In Pakistan it’s tit-for-tat; in Bangladesh it’s for the Hindus living there. I personally don’t mind the Gujarat riots, even though most of it was irrational and I am a Hindu atheist. Retaliation seems essential, but one mustn’t punish the innocents for believing in one god or another. Let’s compare it to the rural Pakistani population, their religious leaders and their support for insurgency in the name of Allah. I have come to believe over time that they aren’t doing much different from what most of humans do. As an 8-year old or so, I wanted to join the army and kill a lot of Pakistanis, as if every Pakistani is a threat to our sovereignty. Rationality kicked in over time, but from time to time, I had felt hatred towards every non-Indian muslim. I have changed and I am glad I did. I hope the world would become more rational, but also punish the bloody savages in human form before they start acting on their irrational thoughts.
US army just did one big favour for entire human populace by killing Osama. I know a few innocents die in such attempt to save humanity, and I don’t want to be one of those innocent casualties of war against terrorism, but then if this was in part of India where I live, I would work to eradicate them by all means possible. And in such situation, if I feel that I am doing something better with my life, I would just run away to do that ‘better’ thing. Israel attacked Hezbollah for ~10 Israeli deaths and I really respect their decision makers for the war they started in retaliation. My country could learn this aspect from Israel and US, terrorist outfits like Indian Mujahideen and any other terrorist organisation must be eradicated and all the rational humans living in India should help the government on it.
I don’t hate all Pakistanis, I hate the weakness of their elected government in handling insurgency, I hate the dirty tricks of ISI that harms not only India but also most Pakistanis, I hate the terrorist outfits flourishing on their land. US have access to Pakistan and they are most capable of saving Pakistan from the situation they have brought themselves in. US aren’t just saving their country and Pakistan, they are also saving humanity in this attempt. I thank the American government and their army for the work they are doing!

 

Has Digvijay Singh (Congress) lost his mind? Digvijay Singh recently compared RSS to the Nazis!
Israeli embassy issued an statement that you can’t compare RSS with Nazis. Couldn’t Congress just quit playing the sectarian politics now?

This is rather disgusting. Let’s revisit the glorious past of Congress. If it was for Congress, even today, most of Indians would be singing “long live the queen (of the Great Britain)”. Congress has been like those kingdoms of India who accepted slavery against protecting their subjects and flourished as a result of it and still are flourishing. The British Indian army killed a hell lot of Indians – Indians who killed Indians became the army of Independent India. The idea of total independence wasn’t brought in by Congress, it came from the kinds of Subhash Chandra Bose, Bhagat Singh and RSS. The great Nehru (I can never celebrate Children’s day on 14th Nov, I don’t want my children to be slaves) was the primary reason for partition of India and congress was the primary reason for making it messier than it already was. Sardar Vallabhbhai Patel must have infiltrated Congress to deliver what he could against all the stupid policies of ageing Mahatma Gandhi ji and the greediest Indian leader Nehru.

Congress hasn’t been winning elections for development, except in Delhi where Sheila Dikshit changed the face of Indian capital in a very short span of time. RSS graduates in form of BJP have done what Congress could have done a long long time ago with all the power they had.

When it comes to religion I am an atheist, but I do believe in RSS’ pro-India policies and activities, Hinduism as religion rarely gets a mention in their proceedings. I joined RSS as a volunteer during my undergraduate studies, had to discontinue the affiliation after I heard the RSS leaders in their district level meeting (well, leaders with political ambitions of a different kind). RSS at ground level is excellent, they don’t ask your religion, they help you just because you are another Indian and because they are in the position to help you.

India is doing well, Manmohan Singh is a good leader, Sonia Gandhi has done the right things. But, all their good work certainly hasn’t given Digvijay Singh the rights to pass such statements about RSS.

© 2011 Abhijeet Dev Suffusion theme by Sayontan Sinha