Custom Hypercall in XEN - virtualization

I was playing around with XEN kernel and I wanted to implement a custom hypercall on XEN. I added an entry in entry.S, defined a constant in xen.h, declared a prototype in hypercall.h and made a new body too in kernel.c as written in this blog.
I am getting an error saying that function is not implemented when i try to execute the hypercall. Iam using Ubuntu 14.04 LTS and Xen 4.7. Any idea why is the function not being implemented though I have clearly tried doing it.

I've made an example for the Xen 4.13 version in this question: how to add a hypercall in xen 4.13.0
Despite this question is previous to that one the idea is the same and I'm answering here to help someone that might get here before!

Did you try in Privcmd (as of mentioned in that blog)?
I recently try it in Xen 4.6.1 and became runable with no problem. it may be because of wrong invoking method or less of privileged. have you ever solved it?
Regards.

Related

How to make SCIP use the LAPACK library?

I have built a MINLP model in Pyomo in Linux system and I used SCIP to solve the model. Then I encountered the problem shown below.
enter image description here
Then SCIP starts optimization and takes a large amount of time. I googled the problem and found that SCIP is only able to use LAPACK through Ipopt. Then I followed the instruction to run make IPOPT=true (I have installed IPOPT). However, build failed.
enter image description here
Then I followed its suggestion to run make IPOPT=true READLINE=false ZLIB=false GMP=false and then new question appeared.
enter image description here
As for this question, I haven’t found any solution. When I run make GMP=true, it suggests me to use GMP=false, and when I run make GMP=false, it suggests me to use GMP=true.
So is there a way to make SCIP use the LAPACK library?
For the GMP=false/true issue, I suspect that the problem is that SoPlex was built with GMP=true and SCIP needs GMP=true as well. So if you want to try to build SCIP with GMP=false then SoPlex should also be built with GMP=false.
I cannot really say from your pictures why linking against Ipopt failed. Check all error messages and whether the symbols that the compiler thinks are missing are actually available in the lib that is linked against.
Use VERBOSE=true to see the actual linker call and check whether it makes sense.
The hints about readline, gmp, or zlib are misleading. Don't deactivate these if you do not actually have problems linking against these libs.
If you want only Lapack but no Ipopt, then there has been a post about this a while ago: lapack library for scip optimization

Sitecore.Forms.MVC.dll 8.0 to 8.1 removed classes : FieldModel & SectionModel

I am in the process of converting the deprecated methods & classes of WFFM from 8.0 rev.150429 (Update-3) to 8.1 rev. 151008 (Initial release). Sitecore provided a good documentation > release notes for the 'breaking changes' that would occur when converted to WFFM 8.1.
Link to release note:
https://dev.sitecore.net/Downloads/Web%20Forms%20For%20Marketers/Web%20Forms%20For%20Marketers%2081/Web%20Forms%20For%20Marketers%2081%20Initial%20Version/Release%20Notes
And that includes moving some classes from Sitecore.Form.Core.dll to Sitecore.WFFM.Abstractions.Actions.dll (okay I understand).
However, though I am not really sure, maybe I just couldn't locate the right page/site, but there were also some changes made in the Sitecore.Forms.MVC 8.0 to 8.1 which were not documented. To be specific, classes are as follows:
Sitecore.Forms.MVC.Models.FieldModel (removed in Sitecore.Forms.MVC 8.1)
Sitecore.Forms.MVC.Models.SectionModel (removed in Sitecore.Forms.MVC 8.1)
Maybe there were also other classes that were removed, as well. But I am only concerned about the above two (2) classes for the mean time.
So, I'd like to know if someone already ran into this scenario before when upgrading WFFM to 8.1 and how you were able to resolved the issue?
I have a hint that I just have to look for the NEW DLL that uses or implements the FieldModel and SectionModel, but again, I couldn't find it as of this writing.
Appreciate any help. Thanks.
There is no FieldModel and SectionModel anymore, but I assume you are looking for the FieldViewModel and SectionViewModel. They can be found still in Sitecore.Forms.Mvc in the Sitecore.Forms.Mvc.ViewModels namespace.
If you need more specific classes, you can check the Sitecore.Forms.Mvc.ViewModels.Fields as well - or open the Sitecore.Forms.Mvc dll with a decompiler (as I did).

Can't run minecraft from eclipse

So, I'm making an hacked client for Minecraft, and i wanna click run and then it says this :
I tried many thing but nothing helps ;(
By the way I'm on Windows
.
Screenshot: http://prntscr.com/6t5j83
Error: Could not find or load main class Start
, Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
What youtube tutorial are you blindly copying code from? If it's one of ConnorM's, stop before he ruins programming for you forever.
You need to sort out the classpath problems that come with MCP. However, I would strongly advise you to learn Java first (as all the skids on HF will tell you). If you can't solve this on your own, you really have no business trying to create a client.

Discover Zeroconf/Bonjour Nodes?

Is there an easy way to scan a given network for Bonjour/Zeroconf services?
I have a set of computers (Linux, Windows, Apple) and would like to auto-generate a list of all available Zeroconf-capable, networked nodes in my Intranet.
If using Linux and the Avahi-Daemon, it looks like Avahi-Discover is worth an investigation.
You'll obviously have to download/install/launch it though. On Ubuntu/Debian, you can use the following:
% sudo apt-get install avahi-discover
And launch GUI with:
% avahi-discover
I haven't used it, but you might want to take a look at the Mono Project's Zeroconf library.
It looks like they have a query tool mzclient that may help you.
If nothing else, you should be able to build something in C# using that library.
By far the most reliable method (I've tried all these, building a MDNS capable embedded product) is to use the opensource 'Bonjour'. This is the mDNSResponder daemon, and its available here:
http://opensource.apple.com/source/mDNSResponder/mDNSResponder-320.10/
mDNSResponder package has a Java JNI library and examples which let you poll all the available services.
#EdH, thanks for your post. I up voted it. I haven't tried Mono.Zeroconf yet, but I am positive that it will work since Bonjour/Zeroconf has changed very little in the last couple years. I am only looking for basic functionalities like service publish and discovery. The mzclient seems a nice location to start with. I dug out the git location for the source: mzclient on github . Hope this helps others looking for a similar solution :-)

Problems with IronPython Studio and PictureBox

Right, so I'm having a go at Iron Python Studio as I'm quite familiar with VS2005 and want to try Python with an integrated GUI designer. But as soon as I add a PictureBox I'm in trouble. When running the project I get complaints about BeginInit and soon enough the form designer stops working.
Is this because I'm running .NET 3.5 or some other compatibility issue? Couldn't find anything at the Iron Python Studio site
I'm having the same problem. What you can do is manually remove the BeginInit() and EndInit() calls, it should work fine then.
Have you checked out IronPython Blog on MSDN? You could probably drill down from there and find a definitive answer. If you do, be sure you update your question here!