Using virtual time sources.

Discussions related to using the OSE version of VirtualBox.
Post Reply
IRabinovich
Posts: 4
Joined: 22. Apr 2015, 11:51

Using virtual time sources.

Post by IRabinovich »

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

        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.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Using virtual time sources.

Post by scottgus1 »

I don't recognize those commands. What are they and where are you entering them?
IRabinovich
Posts: 4
Joined: 22. Apr 2015, 11:51

Re: Using virtual time sources.

Post by IRabinovich »

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.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Using virtual time sources.

Post by scottgus1 »

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.
IRabinovich
Posts: 4
Joined: 22. Apr 2015, 11:51

Re: Using virtual time sources.

Post by IRabinovich »

Yes, I'm modifying the OSE version. I'll write the question onto the VBox OSE topic, thank you.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Using virtual time sources.

Post by mpack »

Cross posting is not allowed. I moved this topic for you.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: Using virtual time sources.

Post by michaln »

Maybe you should start by explain what it is you're trying to do, and what you're hoping to achieve.
IRabinovich
Posts: 4
Joined: 22. Apr 2015, 11:51

Re: Using virtual time sources.

Post by IRabinovich »

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.
Post Reply