Using virtual time sources.

Discussions related to using the OSE version of VirtualBox.

Using virtual time sources.

Postby IRabinovich » 22. Apr 2015, 11:59

Hello!

I'm trying to activate virtual time sources for guest OSes, bit I still see real TSC, clocks and ticks. I'm setting up TM fields in the end of the TMR3Init function following way:

Code: Select all   Expand viewCollapse view
        pVM->tm.s.enmTSCMode = TMTSCMODE_VIRT_TSC_EMULATED;

        pVM->tm.s.cTSCTicksPerSecond=_2G;

        pVM->tm.s.cVirtualTicking=true;

        pVM->tm.s.fVirtualSyncTicking=true;


What do I miss to activate virtual time sources for guest OSes? Any help would be very appreciate.
IRabinovich
 
Posts: 4
Joined: 22. Apr 2015, 11:51

Re: Using virtual time sources.

Postby scottgus1 » 28. Apr 2015, 19:49

I don't recognize those commands. What are they and where are you entering them?
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
Volunteer
 
Posts: 4458
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Win7

Re: Using virtual time sources.

Postby IRabinovich » 29. Apr 2015, 20:47

Thanks for the reply, I add those commands in the very end of the TMR3Init function (TM.cpp file) in order to initiate virtual time/clock/TSC for the guest OSes. I thought they should do the job, but they didn't.
IRabinovich
 
Posts: 4
Joined: 22. Apr 2015, 11:51

Re: Using virtual time sources.

Postby scottgus1 » 29. Apr 2015, 20:54

Still not recognizing what you're doing. Is this the Virtualbox API you're working with, or modifying the OSE version? If so, the forums for those particular uses of Virtualbox might be a better place to post.
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
Volunteer
 
Posts: 4458
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Win7

Re: Using virtual time sources.

Postby IRabinovich » 1. May 2015, 13:55

Yes, I'm modifying the OSE version. I'll write the question onto the VBox OSE topic, thank you.
IRabinovich
 
Posts: 4
Joined: 22. Apr 2015, 11:51

Re: Using virtual time sources.

Postby mpack » 1. May 2015, 14:22

Cross posting is not allowed. I moved this topic for you.
mpack
Site Moderator
 
Posts: 29820
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Using virtual time sources.

Postby michaln » 1. May 2015, 14:44

Maybe you should start by explain what it is you're trying to do, and what you're hoping to achieve.
michaln
Oracle Corporation
 
Posts: 2958
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all

Re: Using virtual time sources.

Postby IRabinovich » 4. May 2015, 14:37

OK, the main aim is to hide presence of virtual machine, this requires to return fake values with rdtsc(p), time and clock's ticks. This should avoid detection, based on rdtsc(p), GetTickCount (WinAPI) and GetLocalTime/GetSystemTime (WinAPI) calls.
IRabinovich
 
Posts: 4
Joined: 22. Apr 2015, 11:51


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest